war or ear  
Author Message
LAI YK





PostPosted: 2004-1-8 15:53:00 Top

java-programmer, war or ear hi there, I'm a newbie here. what is the difference between enterprise
archive & web archive? anyone has a url that explains this? also, is there a
complete design specification of the J2EE Petstore application. url anyone?
many thanks. lai...


 
Johann Burkard





PostPosted: 2004-1-9 2:43:00 Top

java-programmer >> war or ear LAI YK wrote:
> hi there, I'm a newbie here. what is the difference between enterprise
> archive & web archive?

An EAR is a top-level container that contains other application parts,
EJB modules, web modules, client modules etc. A web archive contains a
web application only.

EAR layout:

+- META-INF
| +- application.xml
|
+- some.war
+- some.jar

WAR layout:

+- WEB-INF
| +- lib
| | +- some.jar
| +- web.xml
|
+- index.html

Note how much I like drawing ASCII images.

Johann
--
geh heulen in der ecke da hinten, und ja.. seh ich das richtig oder ist
die sig auf 4 zeilen gekuerzt, hmm! ja sie ist es, also wo wsr dein
problem? richte deinen newsreader entsprecchend ein, du Dau :p (Matthias
Zabel in <email***@***.com>)

 
LAI YK





PostPosted: 2004-1-9 9:40:00 Top

java-programmer >> war or ear cheers mate, I learned 2 things today, abt ear & war, and also how to draw
ascii layout. simply superb. many thanks. lai...

"Johann Burkard" <email***@***.com> wrote in message
news:3ffda4a6$0$17567$email***@***.com...
> LAI YK wrote:
> > hi there, I'm a newbie here. what is the difference between enterprise
> > archive & web archive?
>
> An EAR is a top-level container that contains other application parts,
> EJB modules, web modules, client modules etc. A web archive contains a
> web application only.
>
> EAR layout:
>
> +- META-INF
> | +- application.xml
> |
> +- some.war
> +- some.jar
>
> WAR layout:
>
> +- WEB-INF
> | +- lib
> | | +- some.jar
> | +- web.xml
> |
> +- index.html
>
> Note how much I like drawing ASCII images.
>
> Johann
> --
> geh heulen in der ecke da hinten, und ja.. seh ich das richtig oder ist
> die sig auf 4 zeilen gekuerzt, hmm! ja sie ist es, also wo wsr dein
> problem? richte deinen newsreader entsprecchend ein, du Dau :p (Matthias
> Zabel in <email***@***.com>)
>