• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Generate Stub and build ejb jar for EJB 2.0

 
Ranch Hand
Posts: 51
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 42105
933
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
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
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 42105
933
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

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
Posts: 42105
933
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
The screenshot looks good.
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic