| 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: 8212
|
|
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: 26499
|
|
|
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: 26499
|
|
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: 26499
|
|
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.
|
 |
 |
|
|
subject: WAR
|
|
|