Friday, March 21, 2014

WebSphere JEE Packaging recommendations


Consider the following basic rules when packaging an enterprise application:
Package EJB JAR modules and web WAR modules that make up an application together
in the same EAR module and execute them within the same application server JVM
process. This configuration avoids remote EJB calls (RMI/IIOP) across application server
JVM processes, which is costly from a performance perspective.
Place utility classes that are used by a single web module only within the web module’s
WEB-INF/lib folder.
Place utility classes that are used by multiple modules within an enterprise application at
the root of the EAR file as Utility Projects so that they are accessible by both servlets and
EJB.
Place utility classes that are used by multiple enterprise applications outside the
applications on a directory that is referenced through a shared library definition.
Keep the class path clean and reference only required libraries for your application.

No comments:

Post a Comment