jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam smith <samtsm...@yahoo.com>
Subject Re: Starting Websphere server from Ant script
Date Fri, 16 Jan 2004 21:38:33 GMT
WAS has some Ant tasks that will allow you to start/stop the server (if you search the WSAD
help, you should see something on these).  Like I said before, I couldn't get these to work,
so I'm calling the shell scripts (we're on HP Unix) to start/stop the server as you can see
below.
 
Hope this helps.
 
Sam
 
 <!--######################################################################
  START THE SERVER
  ######################################################################-->
 <target name="start_server" description="Start the server.">
  <exec executable="sh">
   <arg line="${was.home}/bin/startServer.sh MyServer -trace" />
  </exec>
 </target>
 <!--######################################################################
  STOP THE CONTAINER
  ######################################################################-->
 <target name="stop_server" description="Stop the server.">
  <exec executable="sh">
   <arg line="${was.home}/bin/stopServer.sh MyServer -trace" />
  </exec>
 </target>


PUTHENVILA P Johnson <PJohnson@qtech.com.au> wrote:
Hi Sam,
Could you tell me how can I start , deploy and stop using generic 
name="My Container" port="8080">



in this task. I am new to Ant and Cactus.
The docs in Cactus site says 
ow these targets are implemented is highly dependant on the container. 
Most likely you'll need to copy some files and use the task to 
invoke a container-provided Java class that can start/stop the container. 
any idea about this.
could you give some help in this. 
Thanks.
Johnson


---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message