JAR vs. WAR vs. EAR

In J2EE application modules are packaged as EAR, JAR and WAR based on their functionality

 

JAR:

EJB modules which contains enterprise java beans class files and EJB deployment descriptor are packed as JAR files with .jar extension

 

WAR:

Web modules which contains Servlet class files, JSP FIles, supporting files, GIF and HTML files are packaged as JAR file with .war (web archive) extension

 

EAR:

All above files (.jar and .war) are packaged as JAR file with .ear (enterprise archive) extension and deployed into Application Server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s