• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.ear files

 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is it customary to store .ear files?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with Tim.
In WebSphere, you've got a folder called "installableApps" where the ear files are stored.
My 2 cents.
 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I haven't got any Jboss knowledge.
So I'm out of the game here
 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic