wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Automate start/stop Admin Server and managed server for 11g Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Automate start/stop Admin Server and managed server for 11g" Watch "Automate start/stop Admin Server and managed server for 11g" New topic
Author

Automate start/stop Admin Server and managed server for 11g

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 59
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
Ranch Hand

Joined: Feb 01, 2010
Posts: 32
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
Matt Cartwright
Ranch Hand

Joined: Aug 25, 2008
Posts: 149

A platform independent way would be using
WebLogic Scripting Tool (WLST).

Have a look in your %WLS_HOME%\common\wlst
directory.

Another option would be start NodeManager as a
Windows Service.
Then configure it to bring up the Admin Server.

So when your machine starts, the Admin will get
started as well.

Yoou can start your Managed Servier instances
from the console.

Hope that helps.
Matt
Bhargav Ram
Greenhorn

Joined: Nov 10, 2009
Posts: 8

Look @windows bea svc if servers are on windws
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Automate start/stop Admin Server and managed server for 11g