Friday, May 25, 2012

Convert Oracle Weblogic 11 to a Windows Service

In most instances, development application servers are installed to be started manually.  For those occasions when a development AdminServer needs to be converted to a Windows service, the following process can be used (unfortunately, the normal use of the Windows SC.EXE application is insufficient for WL).  Thanks to the original source at Weblogic Wonders.

To convert an administrative server, create a command file (.cmd) containing the following code (modified as needed), and then run the script, preferably using admin rights.

SETLOCAL
set DOMAIN_NAME=Wonders_Domain
set USERDOMAIN_HOME=c:\bea\user_projects\domains\mydomain
set SERVER_NAME=AdminServer
set WL_HOME=c:\bea\wlserver103
set WLS_USER=weblogic
set WLS_PW=weblogic
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms1024m –Xmx1024m
call “%WL_HOME%\server\bin\installSvc.cmd”
ENDLOCAL

If the script ran to completion, there should be a new entry in the Control Panel | Administrative Tools | Services application to control your application server.

No comments:

Post a Comment