Automate start/stop Admin Server and managed server for 11g
Ong Vua
Ranch Hand
Joined: Jan 24, 2008
Posts: 38
posted
0
Right now i start/stop them via command prompt one after the other. I want to put these steps in a batch file or something and have it automatically called when the server start/stop so no manual steps are required.
The steps would be
1) Start Admin Server
2) Start managed server AFTER admin server started
Can you tell me what's the best way to achieve this?
I'm using Windows and Weblogic 11g
Thanks
Joseph Antoine Raja
Greenhorn
Joined: Feb 01, 2010
Posts: 29
posted
0
Hi,
In Unix O/S we can accommodate all your requirements in a single shell script in effective manner.
Since you are using windows you can write a NT command script (*.cmd ) which will do the following activities.
1)Load the Weblogic jars and CLASSPATH variables
2)Start the Admin server wait until it comes up
3)Check the status of the server [ you can use Weblogic.Admin utility]
4)Based on the Admin status start the Managed server