aspose file tools*
The moose likes Websphere and the fly likes Restart webapp in WS3.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Restart webapp in WS3.5" Watch "Restart webapp in WS3.5" New topic
Author

Restart webapp in WS3.5

Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hello,
I'm running Ant locally and Websphere 3.5 is on
the server that I can reach with a terminal
emulator, telnet or ftp.
Has anyone encountered a script or description of
how to stop/start a web-application in websphere 3.5
using an Ant script?
Cheers,
Gian Franco Casula


"Eppur si muove!"
Ibnul Haque
Greenhorn

Joined: Apr 22, 2004
Posts: 10
Why do not have couple of scripts in the box where you are running the WAS.
I use XMLConfig scripts to locate and run them.
One script to initiate the process:
yourServerStartStop.sh
#!/usr/bin/ksh

$EXEC_PATH/XMLConfig.sh -import /$WAS_HOME/yourInstDir/yourStartORStop.xml -adminNodeName $node_name -nameServiceHost $node_name -nameService
Port $yourport -substitute "node_name=$node_name;appsvr_name=$appsvr_name;action=start (or stop, I use the same script)"
Also have the xml file for the purpose:
yourStartORStop.xml
"
<?xml version="1.0"?>
< !DOCTYPE websphere-sa-config SYSTEM "$XMLConfigDTDLocation$$dsep$xmlconfig.dtd">
<websphere-sa-config>
<node name="$node_name$" action="locate">
<application-server name="$appsvr_name$" action="$action$">
</application-server>
</node>
</websphere-sa-config>
"
Then you can easily ftp and call the first script to stop/start your app.
Real easy.
Thanks
Ibnul Haque
Greenhorn

Joined: Apr 22, 2004
Posts: 10
The xml is not visible in the last post:
<?xml version="1.0"?>
< !DOCTYPE websphere-sa-config SYSTEM "$XMLConfigDTDLocation$$dsep$xmlconfig.dtd"<br /> >
< !websphere-sa-config>
< !node name="$node_name$" action="locate">
< !application-server name="$appsvr_name$" action="$action$">
< !/application-server>
< !/node>
< !/websphere-sa-config>
Take the ! mark off
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Thanks Ibnul, I will try that.
Gian Franco
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Restart webapp in WS3.5