wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes .ear files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark ".ear files" Watch ".ear files" New topic
Author

.ear files

Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
Where is it customary to store .ear files?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

You don't so much STORE .EAR files as DEPLOY them. In WebLogic 6, for example, you can actually feed the EAR to the console, and it ensures that the application is usable. Whether the EAR is copied to a directory or just unpacked and spread across the server is not important from an application standpoint.
So the answer is "it depends on the app server".


Customer surveys are for companies who didn't pay proper attention to begin with.
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Agree with Tim.
In WebSphere, you've got a folder called "installableApps" where the ear files are stored.
My 2 cents.


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
What do you mean by "unpacked and spread across the server"? I also don't understand what "feed the EAR to the console" indicates?
I was working from http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/htl/Started3.html
where I read:
"d. In the file chooser, locate the directory where you want to place the .ear file that contains the J2EE application".
I didn't know which directory I should choose.
I appreciate your patience in explaining what is obvious to many I'm sure.
Betty
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Betty,
can you tell us what AppServer you plan to use ?
It could be useful to give you some clues.
thanks
Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
Certainly. I am not trying to be mysterious! I am simply using the deploytool that comes with Sun's j2sdkee1.2.1 installation. This is what they suggest when working through their initial example in the tutorial at http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/
I will probably use JBoss when I finish these examples.
[This message has been edited by Betty Schwartz (edited December 05, 2001).]
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Sorry, I haven't got any Jboss knowledge.
So I'm out of the game here
Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
Not that easy! To do the examples from Sun, you don't need JBoss. You simply use the deploytool that comes with j2sdkee1.2.1. The URL I gave explains the details. Page 1 of Step 3 tells you to put the .ear file in the directory you choose. I was just wondering what would be customary in this case.
Maybe someone has completed the Sun tutorial and gone on from there to the real world. If you have and can advise on this issue, I'd love to hear from you.
Thanks,

Betty
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
I really think you already had the answer from Tim.
As Tim mentionned, when you deploy an ear to an application server, you need to locate the ear file from a folder, because right now, this is how all the OS work
But in a J2EE point of view, the folder you used to store the ear is not important at all.
Once you deploy the EAR, the application server "unzip" it, and copy the content into its own folders.
So basically, you could delete the ear file once it is deployed.

BUT : DEPENDING ON THE APP SERVER YOU USE, the ear file can be a resource for the containers. So, you have to consult your app server documentation to know in which directory the ear file has to be stored.
So once again, there is no generic rules. It is App server specific
HTH
Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
Thanks. I suppose Sun might have some suggestions on what their "deploytool" expects if it matters. I have found not too many know it exists. It appears to do what JBoss, WebLogic, and WebSphere do. Is that a correct assumption? I have downloaded JBoss but not installed it as I wanted to work through Sun's examples first.
Thanks to you who have been so patient today.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .ear files
 
Similar Threads
ClassNotFoundException: org.apache.tiles.startup.BasicTilesInitializer
how to merge war file and ear file?
jar,ear and war file creation
NoClassDefFoundError
Doubut reagarding application.xml