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 WAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring 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: 10202
    
166

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30752
    
156

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30752
    
156

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30752
    
156

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WAR