File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes .ear file and .war files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark ".ear file and .war files" Watch ".ear file and .war files" New topic

.ear file and .war files

prachi jahagirdar

Joined: Feb 02, 2004
Posts: 11
i was trying to understand the deployment procedure. I have some confusion with .war and .ear files.
Suppose i am using Tomcat and created the directory as 'test'. structure is as follows:
/ \
jsp WEB-INF(it contais web.xml)
When i run any '.jsp' file the corrosponding servlet gets created in 'work' directory. If i want to create a 'app1.war' for my application which directory should i use(work or test)? and suppose some EJB.jar are also to be added to create 'app.ear'(I know .ear is not used in Tomcat.... then consider i want to use it in websphere) file for the same application then what are the contents of that file along with 'app1.war' and 'EJB.jar'. What will be the Deployment Discriptor for this .ear file. Can you please give some example.
The next thing is when you give it to client and try to install it on his server. how does this installation takes place?
Thank you!
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Moving this to the Servlets forum.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I agree. Here's the link:
subject: .ear file and .war files
It's not a secret anymore!