This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

How to EAR  RSS feed

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:

Im looking for a tutorial (or article) about how to generate an .ear.
Does someone knows about a good one??

Thanks.
 
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An EAR file is basically a jar file that contains your ejb's, war's and an xml deployment descriptor.

The following link may help.

http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/Overview5.html#wp84705
 
Carlos A. Perez
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
I have another question:
Is it correct to have a .jar that contains .class (no one is an ejb) inside an EAR???
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Carlos,

if you haven't used ant before, now would a great time to learn it.
In particular, ant has tasks for doing jars, wars, ears.

http://ant.apache.org/manual/
http://ant.apache.org/manual/CoreTasks/ear.html

And of course, Javaranch's ant forum for asking general ant questions.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Is it correct to have a .jar that contains .class (no one is an ejb) inside an EAR?"

Yes, your EAR may contain class collections in jar files.
Un saludo,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!