• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generate Stub and build ejb jar for EJB 2.0

 
Debopam Poddar
Ranch Hand
Posts: 51
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclipse for my old project [ do not have any WSAD or RAD]. It has EJB 2.0

Can any one help me on ant scripts how to generate the stubfiles and create the ejb.jar for websphere.

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34860
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debopam,
You can't generate the stub files locally without a WebSphere based product installed. You can create an ejb-jar without the stub files and then run ejbdeploy on the server you will deploy to though.

As far as building the ejb-jar, it's just a matter of jarring up the project if you have it in the right structure. Are you familiar with the structure of an ejb-jar?
 
Debopam Poddar
Ranch Hand
Posts: 51
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your quick reply.

The funny thing about this project is we are migrating to WAS 7 from WAS 5, but ejb is still 2.0. I will try to deploy it by creating jar. If I create the ear file [ ejb is part of that] and deploy it using WAS Admin console will Websphere generate the required file by itself or I have to use ejbDeploy only.
 
Debopam Poddar
Ranch Hand
Posts: 51
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I have the idea also attached the screenshot. Could you please verify?
EJB Project.JPG
[Thumbnail for EJB Project.JPG]
EJB Project structure
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34860
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debopam Poddar wrote: If I create the ear file [ ejb is part of that] and deploy it using WAS Admin console will Websphere generate the required file by itself or I have to use ejbDeploy only.

Either will work. I prefer to use ejbDeploy because it guarantees things are the same if you deploy to more than one environment or after patch releases.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34860
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The screenshot looks good.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic