Friday, August 4, 2017

Creating Windows Service for SOA Service

1.    Editing installSvc.cmd for SOA
      
Editing the installSvc.cmd as like below and rename it to new file installSvc_Soa.cmdThe Difference between the Admin Script and SOA Script is added -depend:"beasvc EPMSystem_AdminServer"
-delay:"120000"

So upon start of Server it will wait for Weblogic Admin Server to get complete start after that there will be delay of 120000 (milliseconds) = 2 mins then SOA Service will start.

Also it is creating new log file in below location with "stdout.txt” prefix.
 D:\Oracle\Middleware\user_projects\domains\EPMSystem\servers\soa_server1\logs
 
rem *** Install the service -log entered by Vikram
"%WL_HOME%\server\bin\beasvc" -install -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%" -stopclass:javaclass -depend:"beasvc EPMSystem_AdminServer" -delay:"120000" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -maxconnectretries:"%MAX_CONNECT_RETRIES%" -host:"%HOST%" -port:"%PORT%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE% -log:"D:\Oracle\Middleware\user_projects\domains\EPMSystem\servers\soa_server1\logs\%SERVER_NAME%-stdout.txt"

2.     Creating batch file to create SOA Windows Services

Write the batch file with below options:
 
echo off
SETLOCAL
set DOMAIN_NAME=EPMSystem
set USERDOMAIN_HOME=D:\Oracle\Middleware\user_projects\domains\EPMSystem
set SERVER_NAME=soa_server1
set PRODUCTION_MODE=true
set WLS_USER=epm_admin
set WLS_PW=<Password>
set WL_HOME=D:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://<servername>:7001
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setSOADomainEnv.cmd"
call "D:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc_Soa.cmd"
ENDLOCAL
 
Save the above batch file like installSoaServer_service.cmd


Run the above batch file it will create the Windows Services like:
" beasvc EPMSystem_soa_server1" it can be validated via Windows MMC (Services.msc)


3.     General Consideration after running the service

After creation of windows service you need to manually set some of the Configuration via Windows Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\beasvc <your domain>_<managed server name>\Parameters


Open the CmdLine in Registry and update the

-jrockit -Xms512m -Xmx1536m
Host <Servername>
Port <8001>

Do the similar setting like above done for Admin Server.

Now, shut down the Admin & SOA server then start it from Windows Services.


No comments:

Post a Comment