From the course: Java EE 7: Enterprise JavaBeans (EJB)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

What is the EJB JAR file?

What is the EJB JAR file?

From the course: Java EE 7: Enterprise JavaBeans (EJB)

Start my 1-month free trial

What is the EJB JAR file?

- [Instructor] If you've ever compressed or uncompressed a zip file, you already know what an EJB JAR file is. It's basically a way to put all your files related to a bean, into a compressed and shareable format you can send to other developers or deploying to your host. The way it works through developer tools such as Eclipse, you'll package your EJB files into a JAR file. When you package the JAR file, a metadata XML file labeled EJB JAR could be created to include some deployment information. And with it, you include all the other class files for this EJB module, and then you compress it, and voila, you have your bean ready to be deployed along other files or shared with other developers. You'll also hear from time to time developers speak of a WAR, or EAR archive. These are basically larger archives that contains multiple modules. The EAR is an enterprise archive file which is often used for assembling server deployments, and the WAR or W-A-R is for your web server. In these…

Contents