jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

Question What's an .ear file?
Derived from A question posed by John Zukowski PREMIUM
Topics Java:API:EJB, J2EE
Author Mobushir Hingorjo
Created Mar 6, 2000 Modified Aug 4, 2000


Answer
An .ear file is an "Enterprise Archive" file. The file has the same format as a regular .jar file (which is the same as ZIP, incidentally). The .ear file contains everything necessary to deploy an enterprise application on an application server. It contains both the .war (Web Archive) file containing the web component of the application as well as the .jar file. In addition there are some deployment descriptor files in XML. http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Overview.fm.html contains additional information.

Is this item helpful?  yes  no     Previous votes   Yes: 4  No: 2



Comments and alternative answers

Comment on this FAQ entry

Should the .ear be enough to deploy an enterprise bean...
Benoit Xhenseval, Apr 18, 2000  [replies:1]
Should the .ear be enough to deploy an enterprise bean in any EJB Server?

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  
Re: Should the .ear be enough to deploy an enterprise bean...
MURALIDHAR KALAVACHARLA, Jan 25, 2002
Frankly speaking I did not use this packaging method as yet. But there seem to be some issues that I came across to know while reading about java packaging. Here is an excerpt from one of those I want to share with the community...

" Currently, the J2EE 1.3 specification defines an enterprise application packaging unit to be a JAR file with an .ear extension. EAR files can contain one or more:

- EJB modules (.jar extension)

- Web application modules(.war extension)

- JCA resource adapter modules (.rar extension)

- Application client modules (.jar extension)

Since most web-based J2EE applications are composed of web and EJB applications, the EAR file meets the basic requirements for packaging an application. However, it is lacking in capability for packaging complicated J2EE applications. For example, the following components are often used in a J2EE application, but cannot be declared in an EAR file:

- Some JMS consumers that run within an application server, such as a MessageConsumer that runs as part of a ServerSession

- JDBC DataSource objects

- JMS ConnectionFactory and Destination objects

- JMX MBeans

- Startup and shutdown classes (admittedly, a propriety extension provided by vendors, but generally unilaterally supplied by all vendors)

Currently, all of these components of an application have to be manually configured and deployed through a vendor's administration interface. As the usage of the items listed above increases over time, it will become more important for EAR files to natively support packaging of these components to achieve true J2EE application portability."

Is this item helpful?  yes  no     Previous votes   Yes: 3  No: 0



Reply to this answer/comment  Help  
Benoit: Not all EJB servers support deployment of ...
Taylor Goetz, Aug 11, 2000  [replies:1]
Benoit:
Not all EJB servers support deployment of applications packaged as .ear files. And, as far as I can tell, this functionality is not a requirement for EJB 1.1 certification.

WebLogic is one server that does not support deployment of .ear files.

Orion is another EJB container that does support .ear files. I have found Orion to be very true to the specification, and very similar to the reference implementation.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  

Re: Benoit: Not all EJB servers support deployment of ...
Billie Goodson, Apr 8, 2005
The link for WebLogic should be http://www.bea.com not beai.com

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  


Ask A Question



 
Related Links

EJB FAQ

EJB Forum

Sun's EJB FAQ

EJBNow.com

O'Reilly Book by guru Richard Monson-Haefel

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers