• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

EJB3: Build, Packaging and Deploying: Industry Standards

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 42003
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 42003
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic