• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

Deploying With Ant Using Websphere3.5

Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ejbinfo.com 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
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic