aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Generate Stub and build ejb jar for EJB 2.0 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 "Generate Stub and build ejb jar for EJB 2.0" Watch "Generate Stub and build ejb jar for EJB 2.0" New topic
Author

Generate Stub and build ejb jar for EJB 2.0

Debopam Poddar
Ranch Hand

Joined: Jun 21, 2005
Posts: 51

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

Joined: May 26, 2003
Posts: 30973
    
159

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?


[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
Debopam Poddar
Ranch Hand

Joined: Jun 21, 2005
Posts: 51

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

Joined: Jun 21, 2005
Posts: 51

Yes I have the idea also attached the screenshot. Could you please verify?



[Thumbnail for EJB Project.JPG]

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30973
    
159

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

Joined: May 26, 2003
Posts: 30973
    
159

The screenshot looks good.
 
 
subject: Generate Stub and build ejb jar for EJB 2.0