Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Deploy EJB in Ant

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can anyone tell me how to deploy an EJB in Ant. I have Ant 1.6.5, Websphere Application Server 5.1. I have tried ejbjar and ejbdeploy but in vain!

Thanks in advance,
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anjani,

Have you tried using the wldeploy ant task? I�m not sure if it ships with your old version of WebLogic, but you can at least try to find out. wldeploy tool on the other hand, is an Ant version of the weblogic.Deployer class. You can use this class to perform any deployment tasks, using basic command lines. Some projects provide a set of shell scripts that runs:

without using Ant. I�m not sure how these Ant deployment tasks work, but for sure I�ll tell you that weblogic specific tools will do the job quite nicely (although far from being perfect). WebLogic Builder is another tool you might use, but I�m pretty sure it doesn�t ship with Weblogic 5� Only few ideas.
author & internet detective
Posts: 40035
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is definitely an Ant task for WebSphere 4. I assume there is for WAS 5 as well. Our Ant script for WAS 5 runs the EjbDeploy program as a Java command.
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is how we are using ant to deploy EJB for WebSphere Application Server 5.0:

<target name="deployEJB" depends="" description="generate the ejb jar file for a given ejb project">
<taskdef name="wsejbdeploy" classname="" classpathref="deploy.classpath"/>
<wsejbdeploy inputJar="TEMP_JAR"
I love a woman who dresses in stainless steel ... and carries tiny ads:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic