wood burning stoves 2.0*
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
Author

Deploy EJB in Ant

Anjani Kalyani
Greenhorn

Joined: Nov 07, 2005
Posts: 1
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

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.
Regards.


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

Joined: May 26, 2003
Posts: 30116
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Deepak Kaul
Greenhorn

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"
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
 
subject: Deploy EJB in Ant
 
Similar Threads
How to deploy ejb in weblogic6.1
How to deploy ejb in weblogic6.1
Ant in Sun One: problem
Ant Program ejbjar
Weblogic/Websphere/ant