13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

23.4 Maintaining a Distributed <str<strong>on</strong>g>Applicati<strong>on</strong></str<strong>on</strong>g>517Example 23.7 An Ant target for checking out source from CVSOur example (see the book’s Web site 3 for the full listing) <strong>on</strong>ly copiesprebuilt XML files (the deployment descriptors) into place to be included inthe JAR, WAR, and EAR files. For small examples like ours, building the deploymentdescriptors by hand is not a difficult task. But larger, more complexprojects will benefit from further automati<strong>on</strong>. Most J2EE servers come withtools to help build such things. These tools tend to be specific to the particularsof their products. Since the J2EE specificati<strong>on</strong> allows for certain vendor variati<strong>on</strong>sand c<strong>on</strong>figurati<strong>on</strong> differences, they can be helpful in c<strong>on</strong>figuring thingsfor your specific vendor’s versi<strong>on</strong>. But being dependent <strong>on</strong> them for your deploymentis a subtle way to become locked into their product. Another goodchoice—<strong>on</strong>e that avoids this vendor lock-in—is the Open Source tool XDoclet.23.4.2 XDocletXDoclet is an important tool to help with the automati<strong>on</strong> of EJB-related tasks.Working in c<strong>on</strong>juncti<strong>on</strong> with Ant, it uses the Javadoc mechanism of Java to3. http://www.javalinuxbook.com/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!