File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes PAcking multiple WARs inside EAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "PAcking multiple WARs inside EAR" Watch "PAcking multiple WARs inside EAR" New topic
Author

PAcking multiple WARs inside EAR

par dhar
Greenhorn

Joined: Nov 16, 2006
Posts: 11
Hi All,

Can anybody please throw light on advs/disadvs of packing the multiple WARs in EAR?Also in that case if I want to share the data among pthe acked WARs then whats the solution for it?

Regards
Parag
Daniel Rhoades
Ranch Hand

Joined: Jun 30, 2004
Posts: 186
Yeap you can multiple WARs or JARs in a single EAR.

Advantages - it's one deployable unit, you can take advantage of local interfaces and local JNDI scope between the web and ejb tiers.

Disadvantages - non that I've come across

What do you mean by sharing data?


Drinking more tea is the key...
par dhar
Greenhorn

Joined: Nov 16, 2006
Posts: 11
Can WARs inside EAR share the memory area assigned by app server because context is allocated per WAR and not to EAR and if such WARs are inside EAR then can we share context area of multiple WARs? If so can anybody pls let me know how to achive it? As then perhaps we can use that context area to share the data also?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: PAcking multiple WARs inside EAR
 
Similar Threads
WAR
best way to share a singleton across webapps in one ear?
war in ear file
multiple deployment descriptor (web.xml) for one application
How to set up multiple log4j configurations for multiple WAR packages?