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.

514Chapter 23Deploying EJBsExample 23.6 Sample web.xml fileSessi<strong>on</strong>ServletSimple Sessi<strong>on</strong> Servletcom.jadol.budgetpro.Sessi<strong>on</strong>TestServlet1Sessi<strong>on</strong>Servlet/servlet/test0a directory structure that mirrors the structure of the JARs that you are building.But that arrangement is often not helpful for source management purposes.It is therefore not uncomm<strong>on</strong> to have a source tree that reflects the projectstructure and a separate build directory that mirrors the JAR file directory layout.As classes are compiled, the class files are copied into the build directoryal<strong>on</strong>g with copies of the XML, JSP, and other files. As a last step in the buildprocess, the build directories are “jarred up” into WAR/JAR/EAR files.23.3DEPLOYING THE EARDeploying means getting your file(s) into the right place and dealing with theWeb server to get your applicati<strong>on</strong> up and running. For EJBs this includes the

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

Saved successfully!

Ooh no, something went wrong!