• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compile and Deploy EJB without RAD,WASD

 
paul rappai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team,

my concern is on ejb stuff on
if i look into any xxxejb.jar file then i can see lot of stub and skelton files. How to create these files without RAD,WASD or any IDE
if i have 3 ejb's(Home ,Remote and EJBBean) and working with websphere6 then other than xml and xmi files,how to build xxxejb.jar with stubs and skeltons?

weblogic.ejbc and rmic commands are used for the same?

any site will give step by step process(not openEJB)

Thanks
Paul
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With WebSphere, when you deploy the EJB application this happens. You should just be able to deploy you application with the admin console.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,
You can create the stubs and skeletons by running ejbdeploy at the command line. You do need to create an ear yourself. You can do that with Ant or Maven.
 
paul rappai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Paul,
You can create the stubs and skeletons by running ejbdeploy at the command line. You do need to create an ear yourself. You can do that with Ant or Maven.


Dear Jeanne,

Thanks for Quick response....

Could you able to give step by step procedure for the same?

thanks
Paul
 
paul rappai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:With WebSphere, when you deploy the EJB application this happens. You should just be able to deploy you application with the admin console.


My Requirement as below

1)Suppose i have Websphere6.1 , NOT WSAD
2)I need my ejb's to compile and deploy with stub and skeletons using command line args.
3)Any plugin available for the same for eclipse?
4)What all java commands i need to use to generate stub and skeletons ?

Thanks
Paul
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The WebSphere documentation covers the Ant tasks it supplies. Also, if you do deploy via the Admin console, it should show you the WSAdmin script equivalent for everything you do (at least, it does in WAS 7)


What all java commands i need to use to generate stub and skeletons ?

None. As I said, this will happen when you deploy your EJB application (which runs WAS's deployment code), and as Jeanne said you can run this directly via the Ant tasks WAS supplies.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:
None. As I said, this will happen when you deploy your EJB application (which runs WAS's deployment code), and as Jeanne said you can run this directly via the Ant tasks WAS supplies.

Correct. Or you can run the ejbdeploy command at the command line.
 
paul rappai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:
Paul Sturrock wrote:
None. As I said, this will happen when you deploy your EJB application (which runs WAS's deployment code), and as Jeanne said you can run this directly via the Ant tasks WAS supplies.

Correct. Or you can run the ejbdeploy command at the command line.




Thanks Paul and Jeanne

One more help needed....after compile ejb files , editing mannuallly ejb-jar.xml and xmi files(placing these files in META-INF). What is next step to be done in command line? or just provide any site is providing step by step procedure with the same. Appreciate if provide portion of build.xml does the deployment(NOT placing jar in server Deploy folder, Creating JAR with Stub and Skeletons) .

Thanks in Advance
Paul
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article is old (2002) and can't be followed literally anymore. But it provides a great conceptual overview.

Steps when deploying manually:
1) Jar up your ejb project
2) Create the ear - look at the JEE tutorial if you don't know the format of an ear
3) Upload your ear to the server you will be using to deploy
4) Deploy it directly which will run ejbdeploy (or run ejbdeploy at the command line first if you want the stubs/skeletons created before you deploy)

I recommend using Ant for steps #1 and #2. While it is possible to do the rest in Ant, it requires you to have WebSphere installed on the machine running the build.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!