Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in which scenario a web application to be designed with many WAR file (each contain a web.xml)
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a huge app with different components. Maybe different groups/organizations are developing the different pieces.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic