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?
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