WebLogic adding an application domain to a Windows service

Source: Internet
Author: User

In the Windows operating system, WebLogic can be started from the command line, or it can be started and stopped through Windows Services (service). In some cases, a window service is advantageous when you need to boot from the startup, or when the command-line window can be turned off.

First, how to deploy WebLogic Web App as a Windows service?

1. Locate the Installsvc.cmd file in the WebLogic installation directory

General in the location: "WebLogic installation directory" under/oracle/middleware//server


2. Modify the Installsvc.com file

Increase the configuration between dashes, including the following parameters:

domain_name: Domain name, the directory name of the Web application domain, which is generally the directory under user_projects/domains/

SERVER_NAME: Service name, configuring the service name of the Web app, typically the default is AdminServer

Wls_user: The application domain Admin user name

WLS_PW: The app Domain Admin password

Set Wl_home=d:\oracle\middleware\wlserver_10.3call "%wl_home%\common\bin\commenv.cmd" REM------------------------ ------------------------------------------------------<strong>rem DOMAIN's name set Domain_name=app1_domainrem The path set Server_name=adminserverrem domain is generally the default set userdomain_home=d:\oracle\middleware\user_projects\domains\app1_ Domaincall "%userdomain_home%\bin\setdomainenv.cmd" set Wls_user=weblogicset wls_pw=weblogic1</strong>rem--- ---------------------------------------------------------------------------@rem Check that the WebLogic classes is Where we expect them to be:checkwlsif exist "%wl_home%\server\lib\weblogic.jar" goto Checkjavaecho the WebLogic server was N ' t found in directory%wl_home%\server.echo please edit your script so, the wl_home variable points echo to the Weblo GIC installation Directory.goto Finish

In addition to the above environment variable parameter configuration is correct, here is the most critical two points:

1, add the parameter configuration section to be placed after commenv.cmd, so that the parameter configuration in the file can be executed;

2. Call the Setdomainenv.cmd under the Web application domain, where many parameters of the application domain are set.

<span style= "FONT-SIZE:12PX;" >rem * * * Install the service "%wl_home%\server\bin\beasvc"-install-svcname: "Beasvc_%domain_name%_%server_name%"- Javahome: "%java_home%"-execdir: "%userdomain_home%"-maxconnectretries: "%max_connect_retries%"-host: "%HOST%"- Port: "%PORT%"-extrapath: "%extrapath%"-password: "%wls_pw%"-cmdline:%cmdline%</span>

There's one more place to change.
-svcname
after the beasvc, remove the space, add _, avoid spaces and have problems with command operations.


Second, remove Windows service

When the service no longer needs to be deleted, then you will use it.

1, first in the Control Panel or Task Manager (WIN7) Open the Windows Service Management window, find the published service, generally start with Beasvc, double-click the service, in the open window to find the service name in the upper section.

2. Execute the command in the Windows command Line window:

SC Delete [Windows service name]

such as: SC delete beasvc_app1_domain_adminserver

If the configuration is unsuccessful, you will have to remove it again.

WebLogic adding an application domain to a Windows service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.