File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB3: Build, Packaging and Deploying: Industry Standards Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3: Build, Packaging and Deploying: Industry Standards" Watch "EJB3: Build, Packaging and Deploying: Industry Standards" New topic
Author

EJB3: Build, Packaging and Deploying: Industry Standards

palla sridhar
Ranch Hand

Joined: Oct 15, 2007
Posts: 111
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


Thanks and Regards,
[url]www.techlikes.com[/url]
*Nothing is CONSTANT in life, except CHANGE*
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Building and deployment is specific to each EJB server. You need to read the documentation for the server which you are using.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
palla sridhar
Ranch Hand

Joined: Oct 15, 2007
Posts: 111
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3: Build, Packaging and Deploying: Industry Standards