Tim;
In our case we start the server MAXDEVWAS60 and the apps in the server start automatically.
If you are wanting to start/stop an application in a currently running server then there are several ways to do that:
You can use the startnode/stopnode "command" found in the /bin directory of the server, if I remember correctly.
You can use the wsadmin "command" also found in the /bin directory
Or you can use ant scripting.
I have an ant script in the directory "/qibm/UserData/WebSphere/AppServer/V6/Base/profile+
s/MAXDEVWAS60/installTools/startApplication.xml" Note: We created the installTools directory in all of our servers to store ant scripts and such for application instillation.
<project name="startApplication" default="start">
<taskdef name="wsStartApp"
classname="com.ibm.websphere.ant.tasks.StartApplication/>
<target name="start">
<wsStartApp application="${application}" />
</target>
</project>
To run the script I have a CL with these lines:
CHGVAR VAR(&QSHCOMMAND) +
VALUE('/qibm/UserData/WebSphere/AppServer/V6/Base/+
profiles/' *TCAT &SERVER *TCAT '/bin/ws_ant +
-buildfile +
/qibm/UserData/WebSphere/AppServer/V6/Base/profile+
s/' *TCAT &SERVER *TCAT +
'/installTools/startApplication.xml -Dapplication="' +
*TCAT &APPNAME *TCAT '"')
QSH CMD(&QSHCOMMAND)
Where the variables &SERVER = MAXDEVWAS60 and &APPNAME = application name.
Copy the script and CL and change all the "start"s to stop and you can stop an application without ending the server.
Duane Christen
--
Duane Christen
Senior Software Engineer
(319) 790-7162
Duane.Christen@xxxxxxxxxx
Visit PAETEC.COM
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of tim
Sent: Wednesday, April 08, 2009 8:35 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: start application server from cl
Thanks Duane,
A little more info on what I am trying to start.
Application Name: webEAR
Location:
/qibm/userdata/websphere/appserver/v61/express/profiles/default/installedApp
s
Im guessing I can use the command you sent. Is MAXDEVWAS60 parm your application name?
Thanks
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Christen, Duane
Sent: Wednesday, April 08, 2009 8:46 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: start application server from cl
Tim;
This starts our websphere 6.0 development server:
SBMJOB CMD(CALL PGM(QWAS6/QWASSTRSVR) PARM('-profilePath'
'/QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/MAXDEVWAS60' '-server'
'MAXDEVWAS60'))
JOB(MAXDEVWAS6) JOBD(QWAS6/QWASJOBD) JOBQ(QWAS6/QWASJOBQ) USER(QEJBSVR)
LANGID(*USRPRF) CNTRYID(*USRPRF) CCSID(*USRPRF)
--
Duane Christen
Senior Software Engineer
(319) 790-7162
Duane.Christen@xxxxxxxxxx
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of tim
Sent: Tuesday, April 07, 2009 1:53 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: start application server from cl
Version: WebSphere Application Server, V6.1.0.11 Express
Subsystem: QWAS61
Install path: /QIBM/ProdData/WebSphere/AppServer/V61/Express
Profile path:
/qibm/userdata/websphere/appserver/v61/express/profiles/default
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.