• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are Ear Files build once and Deploy on Multiple Apps server thing?

 
Sandeep Sign
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it Possible to build a simple ear with just one "Hello World" html page to be build just once as ear file and deployed on weblogic, JBoss or any other server?

Means if Ear file is very simple which does not uses any advance services provided by specific container, is it possible this ear to be usable across different application servers?
 
K. Tsang
Bartender
Posts: 3604
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ask yourself what is a EAR file?

EAR stands for enterprise archive. Similar to WAR which can be deployed to many app servers once built (given the file has that app server's config if need eg JDBC).
Same goes for EAR file. An EAR file can contain WAR, EJB JAR, library JAR, and others packed into once.

To access say a WAR file inside the EAR, there usually an application.xml file specifying the mappings what file is for what purpose.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!