This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying With Ant Using Websphere3.5

 
Abiram Radhakrishnan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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}"/>
</path>
<target name="compile" description="compiles source files">
<javac srcdir="${srcDir}" destdir="${buildDir}" classpath="classpath"/>
</target>
<target name="jar" depends="compile" description="To jar the Compiled Source" >
<jar basedir="${buildDir}" destfile="${srcDir}/lib/demo.jar"/>
</target>
</project>
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
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abiram,
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.
 
SRINIVASA BHAVANAM
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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,
Srini
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic