File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Deploying With Ant Using Websphere3.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Deploying With Ant Using Websphere3.5" Watch "Deploying With Ant Using Websphere3.5" New topic

Deploying With Ant Using Websphere3.5

Abiram Radhakrishnan

Joined: Jun 26, 2002
Posts: 13
Hi I have tried the Compiling & doing Jar with the ant to my ejb Component but how to do the Deploy the same bean using ANT in Websphere3.5 Version
As ststed in the I have done all the steps
Command line build using ANT.
1) We're using ANT for compiling all the sources. The process for building an EJB is as follows:
a) Make an jetace XML file describing your ejbs. This is documented in the infocenter.
Make an ANT task to compile your code and jar them.
b) Run the jetace tool passing the previous xml file as a command line argument using the '-f' flag. The XML file should have the input file set to your jar and the outputfile set to the deployable jar you want created. You need to put all classes your code depends on in the input jar or manually edit the jetace batch file to add these external jars to the jetace classpath. There is no way to tell jetace about these jars besides this.
I have Installed the jetace in my Websphere sucesfully &
Now my Question is how to write the Tag for the Deploy of my ejbs in ANT build File & how to use
jetace to deploy my jar file
My Build File for Compiling & Jar is
<?xml version="1.0" encoding="UTF-8"?>
<project name="Ant Demo" default="jar" basedir=".">
<!--Define Global properties. -->
<property environment="env"/>
<property name="buildDir" value="classes"/>
<property name="srcDir" value="src"/>
<property name="xalan" value="XML/xalan/xalan.jar"/>
<property name="xerces" value="XML/xalan/xerces.jar"/>
<property name="junit" value="JUnit/junit3.7/junit.jar"/>

<path id="classpath">
<pathelement path="${buildDir}"/>
<pathelement path="${junit}"/>
<pathelement path="${xerces}"/>
<pathelement path="${xalan}"/>
<target name="compile" description="compiles source files">
<javac srcdir="${srcDir}" destdir="${buildDir}" classpath="classpath"/>
<target name="jar" depends="compile" description="To jar the Compiled Source" >
<jar basedir="${buildDir}" destfile="${srcDir}/lib/demo.jar"/>
How to write the Deploy tag to deploy my ejb into the Websphere 3.5 & what type of command & parameter I need to specify in jetace while deploying
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
JavaRanch has a naming policy which is strictly enforced. Please read the policy and change your display name if you wish to continue posting here. Thanks.

Matthew Phillips

Joined: Apr 05, 2004
Posts: 1
I have been using Ant to compile my ejb source files. But i am not sure how to convert ejb-jar.xml(this is according WSAD 5.0 format) to serializable file using an ant task. I have seen that there is a class called DDCreator which takes WebLogic specific txt file and converts to serializable file. I need to know how to integrate jetace with ant to create a task and use it to do the conversion.
Any help in this regard is highly appreciated,
Thanks in advace,

I agree. Here's the link:
subject: Deploying With Ant Using Websphere3.5
It's not a secret anymore!