- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsUrgent! I am relatively new to Websphere (have worked on Weblogic before) and am working on an Ant build script for Websphere 6 with the intent to automate the build process (in Unix). The build machine has websphere 6 on it but no RAD. (I do have RAD on my local dev machine though). I don't want any IDE specific stuff in the build script. The more generic it is, the better.
- How do I identify/isolate the websphere specific jars required for building and deploying? (there are like a zillion jars in /lib dir).
- Would appreciate concrete working examples.
- Any tips\suggestions to go about developing this script.
Couldn't find any clear documentation on IBM site. Googling pointed me to ejbDeploy.bat but could not find any concrete examples. This must be a common problem for many who use Websphere so someone would have sorted this mess out.
these are the sites that indicated using ejbDeploy.bat
http://saloon.javaranch.co
http://mail-archives.apach
http://publib.boulder.ibm.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mbvvsatishPosted on 2007-04-10 at 03:57:21ID: 18881378
you need to use wsadmin.bat that comes with websphere application server. ld.xml#### ########## ## t" token="@@@Build_Path@@@" value="${project.build.pat h}" /> xt">
cation.txt ###################### ocess=serv er1,*] stopApplication {<Your Webapp name>} ear {-appname {<Your Webapp name>} -server server1 -defaultbinding.virtual.ho st default_host -usedefaultbindings} ocess=serv er1,*] startApplication {{<Your Webapp name>}}
########## ########
here is how you use in your build. xml file
#######################bui
<?xml version="1.0" encoding="UTF-8"?>
<project name="DeployWar" default="deployOnServer">
<property file="common.properties" />
<target name="deployOnServer">
<echo message="****** Deploying Application******"/>
<replace file="deployApplication.tx
<exec executable="wsadmin.bat" input="deployApplication.t
</exec>
</target>
</project>
###############deployAppli
$AdminControl invoke [$AdminControl queryNames type=ApplicationManager,pr
$AdminApp uninstall {<Your Webapp name>}
$AdminConfig save
$AdminApp install @@@Build_Path@@@/MyWebApp.
$AdminConfig save
$AdminControl invoke [$AdminControl queryNames type=ApplicationManager,pr
##########################
you need to give your webapp name and your server instance name in the deployApplication.txt file
common.properties file should contains the properties required for the wsadmin.bat