• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment question: put wars in a EAR

 
ernie chung
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know under what circumstances we should put wars into one ear. If I have two web applications, each use their own database, should I put the two WARs into the same EAR? Thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If they are part of the same enterprise application, then yes.
 
ernie chung
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

But I am still not very clear about the concept...

Suppose each WAR is already a complete web application. Can we put both WARs under the same EAR? If yes, then, both WAR contains WEB-INF/web.xml, which xml file the application is referring?
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each war would have a different context-root.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic