• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Restart webapp in WS3.5

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ibnul, I will try that.
Gian Franco
 
reply
    Bookmark Topic Watch Topic
  • New Topic