3 Replies Latest reply on May 9, 2013 5:50 AM by René van Wijk

    Scripts for automatic start services on Weblogic Server

      Hello friends,
      I try to create a script to automatic mode to upload the Admin server and server nodes weblogic 11g, any recommendations for this process

        • 1. Re: Scripts for automatic start services on Weblogic Server
          Hi there,

          Here's some of the helpful points for you start weblogic server automatically.

          Starting Server Automatically without Nodemanager

          1. If you are working on windows environment, you can start WebLogic as a windows services.

          Please refer the above document, if you want WebLogic Server instance to start automatically when you boot a Windows host computer by setting up the server as a Windows service.

          Starting Server Automatically with Nodemanager

          2. If the JVM process fails (shuts down), then Windows Services Manager will attempt to restart it. But there are some scenarios where the Admin Server or Managed Server may go into an unhealthy or failed state but the JVM is still running. The Windows Service will not know to restart the process in these cases, whereas if the Admin Server and Managed Server had been started using Node Manager, Node Manager would recognize such a state and restart the process accordingly. So it may be desirable to start Node Manager with a Windows Service and then start the Admin Server and Managed Servers with Node Manager to take advantage of this monitoring feature. Below you will find one such example of how to do this.

          Example of starting the Admin Server and a Managed Server using Node Manager

          Create a batch script similar to this:
          call D:\Product\Oracle\Middleware\user_projects\domains\base_domain\bin\setDomainEnv.cmd
          java weblogic.WLST D:\Product\Oracle\Middleware\user_projects\domains\Vijaya_domain\ServerStart.py

          Create a Python script similar to this:
          nmConnect('weblogic', 'welcome1', '', '5556', 'Vijaya_domain','D:\Product\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1','ssl')
          connect ('weblogic','welcome1','t3://')

          If you want this to happen automatically on boot up, you can run the script (myscript.cmd) from the Windows Scheduler. You must configure the scheduler to run the script on system startup. This will execute the script without requiring an interactive login to Windows (unattended).

          Hope this helps!!

          • 2. Re: Scripts for automatic start services on Weblogic Server
            Thanks, as through this process in a Linux environment
            • 3. Re: Scripts for automatic start services on Weblogic Server
              René van Wijk
              http://middlewaremagic.com/weblogic/?p=8187 (for starting and stopping servers) or http://middlewaremagic.com/weblogic/?p=8260 (to automate the set-up of a domain)