• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restart webapp in WS3.5

 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ibnul Haque
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ibnul, I will try that.
Gian Franco
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic