This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploy EJB in Ant

 
Anjani Kalyani
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,
Anjani
 
Valentin Tanase
Ranch Hand
Posts: 704
  • 0
  • 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.
Regards.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anjani,
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.
 
Deepak Kaul
Greenhorn
Posts: 13
  • 0
  • 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="com.ibm.websphere.ant.tasks.WsEjbDeploy" classpathref="deploy.classpath"/>
<wsejbdeploy inputJar="TEMP_JAR"
wasHome="WASHOME"
workingDirectory="BUILD_FOLDER"
outputJar="EJB_JAR"
classpathref="deploy.classpath"
codegen="false"
quiet="false"
noValidate="false"
noInform="false"
trace="true"
noWarnings="false"/>
</target>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic