• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3: Build, Packaging and Deploying: Industry Standards

 
palla sridhar
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I am studying EJB3 for the past few days.
The basic doubt i have is related to INDUSTRY standards.

1. How do we build, package and deploy EJB3 components in the INDUSTRY?
2. I want to use these EJB components on different application servers like JBoss, WebLogic etc. ?
3. If we use Ant, can anybody give me the Ant files necessary to build and deploy EJB3 components!
4. If we build EJB3 components on one server like JBoss, can we deploy the same components in WebLogic or anyother server? Or, do we need to make any changes?



Thanks
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Building and deployment is specific to each EJB server. You need to read the documentation for the server which you are using.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) We build an EAR file that contains an ejb jar file with the EJB3 component. The same way as any other J2EE app.
2) I'll skip this one as it isn't a question.
3) Your Ant build script needs to be written with paths for your environment here's the ant manual
4) If you stick to the spec and are careful not to use any vendor specific extensions, you can deploy to another server.
 
palla sridhar
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne!
Thanks for answering.

But still i am left with the same doubt.

1. Where can i have the build.xml files required to build, package and deploy EJB components for JBoss4.2.2, GlassFish-v2?

3) Your Ant build script needs to be written with paths for your environment here's the ant manual

In the Ant manual i do not find any build.xml files, for EJB's!!

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by palla sridhar:
In the Ant manual i do not find any build.xml files, for EJB's!!

Some vendors provide custom tasks for EJBs. The Ant manual does have a list, but it is quite out of date. I don't know if Glassfish provides one.

It might not be necessary though. if the ejb-jar is just a normal jar (without generated code), you can use the regular jar task.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic