wood burning stoves
The moose likes EJB and other Java EE Technologies and the fly likes Deploy EJB in Ant 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 "Deploy EJB in Ant " Watch "Deploy EJB in Ant " New topic

Deploy EJB in Ant

Anjani Kalyani

Joined: Nov 07, 2005
Posts: 1

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,
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
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.

I think, therefore I exist -- Rene Descartes
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Deepak Kaul

Joined: Nov 08, 2005
Posts: 13
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"
I agree. Here's the link: http://aspose.com/file-tools
subject: Deploy EJB in Ant
It's not a secret anymore!