This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes WAR 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 "WAR" Watch "WAR" New topic
Author

WAR

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
in which scenario a web application to be designed with many WAR file (each contain a web.xml)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9912
    
158

Jacob,

I'm not sure i understand the question. A WAR file (with one web.xml) represents a web application. Sun has this tutorial on web applications, which you might find useful.


[My Blog] [JavaRanch Journal]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

If you have a huge app with different components. Maybe different groups/organizations are developing the different pieces.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Also,
I think you mean an ear (enterprise) application rather than a war (web application) when discussing what can contain multiple web apps.
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
as far as my understanding, a JEE application can contain only one web.xml in single JVM (application server),but somebody suggest that it can have many WAR files ,so it has many web.xmls in single JVM.

Is it true?. If so, application server read all web.xml in single JVM ?.

Web application can have many servlet contexts in single JVM?
[ October 05, 2008: Message edited by: jacob deiter ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

If you search for ear multiple wars, a bunch of hits come up.

Note that a JVM and app server are not the same thing. An app server runs code in multiple JVMs. The EJBs are run in a different JVM from the web layer. I think each web module gets its own JVM which is what you probably are remembering this from.
 
Don't get me started about those stupid light bulbs.
 
subject: WAR
 
Similar Threads
India to reconsider troops to Iraq
Envy/Greed/Choose two...
[political] Clear me on WMD arithmetics
WA #1.....word association
Classloading, WAR file extraction