Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ANT tasks for create EJB jar files  RSS feed

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I created the EJB' application in my test server (websphere). But now i need to bundle the EJB using ANT build tool and deploy it as an EAR.

WHile developing the EJB i used the websphere. But now i my lead asked me to create the files (jar and EJB stubs) using ANT tasks. Since IDE taken care of
creating all the files i donno what are all i need to do to create the EJB application.

It will be really gratefull if any one can give me some pointers on this.

Thanks
Param
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Param,
You can use the Ant jar task on the EJB project to create an EJB jar. As an example of the expected output, export the existing project as an EJB jar. The file your Ant script generates should be the same.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the future, please don't post the same question in multiple forums.
 
Dinesh Bang
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi man,
use the ejbdeploy.bat file, see for more details options of that command, as per your usage.
It will generate all the stubs for you, as required by websphere
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!