SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
WEBLOGIC AS A WINDOWS SERVICE

PREPARED BY RAVI KUMAR LANKE

Page 1
The below post describes the installation of WebLogic server as a windows service, we will look at how
we can install the Admin Server as well as Managed server as a service.
Steps:
1. Create an install batch script that contains the domain, server details.
Installing Admin Server as a service.
Create an install script as below.
—————————————————

1 SETLOCAL
2
3 set DOMAIN_NAME=Wonders_Domain
4
5 set USERDOMAIN_HOME=C:BEA103user_projectsdomainsWonders_Domain
6
7 set SERVER_NAME=AdminServer
8
9 set WL_HOME=C:BEA103wlserver_10.3
10
11 set WLS_USER=weblogic
12
13 set WLS_PW=weblogic
14
15 set PRODUCTION_MODE=true
16
17 set MEM_ARGS=-Xms512m –Xmx512m
18
19 call "%WL_HOME%serverbininstallSvc.cmd"
20
21 ENDLOCAL

—————————————————

PREPARED BY RAVI KUMAR LANKE

Page 2
Installing Managed Server as Windows Service:
If you want to install a Managed Server as a Windows service, you must include a variable that specifies the
location of the domain’s Administration Server. The Managed Server must contact the Administration Server
to retrieve its configuration data.
The Administration Server (which is not a service) must be started before installing and starting Managed
Server as a Windows service.
Create an install script as below.
—————————————————

1 echo off
2 SETLOCAL
3
4 set DOMAIN_NAME= Wonders_Domain
5 set USERDOMAIN_HOME= C:BEA103user_projectsdomainsWonders_Domain
6 set SERVER_NAME=ManagedServer1
7 set PRODUCTION_MODE=true
8
9 set WL_HOME=C:BEA103wlserver_10.3
10
11 set ADMIN_URL=http://<adminserver-host>:7501
12
13 set MEM_ARGS=-Xms40m -Xmx250m
14
15 call "%WL_HOME%serverbininstallSvc.cmd"

PREPARED BY RAVI KUMAR LANKE

Page 3
NOTE: If you set up both an Administration Server and a Managed Server to run as Windows services on the
same computer, you can specify that the Managed Server starts only after the Administration Server. In that
scenario we need to pass the below argument while running the script.
-delay:delay_milliseconds
For example:
"%WL_HOME%serverbinbeasvc" -install
-svcname:"%DOMAIN_NAME%_%SERVER_NAME%" -delay:120000

2. After running this script in the command prompt you will observe a log statement such as
“beasvc <Server> installed”
You can check the same from the services list as well using the services.msc utility.

3. Verify whether the WebLogic Server is successfully installed as a service as below.
Open a command window and enter the following command:
set PATH=WL_HOMEserverbin;%PATH%
Navigate to the WLS_SERVER_HOME/server/bin
Enter: beasvc -debug “yourServiceName“
For Example:
C:BEA103wlserver_10.3serverbin>beasvc -debug “beasvc Wonders_Domain_AdminServer”
4. You can start / stop the server from the services.msc window or you can also use the below commands.
Starting the service:
net start “beasvc Wonders_Domain_AdminServer”
Stopping the service:
net stop “beasvc Wonders_Domain_AdminServer”
Note: For each server instance that you set up as a Windows service, WebLogic Server creates a key in the
Windows Registry underHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices. The registry
entry contains such information as the name of the server and other startup arguments.
Uninstall the WebLogic server as a windows service.

PREPARED BY RAVI KUMAR LANKE

Page 4
1. Create an Uninstall script as below.

******************************************************

1 echo off
2
3 SETLOCAL
4
5 set DOMAIN_NAME= Wonders_Domain
6 set SERVER_NAME=AdminServer
7 set WL_HOME=G:BEA103wlserver_10.3
8
9 call "%WL_HOME%serverbinuninstallSvc.cmd"
10
11 ENDLOCAL

******************************************************
2. Execute the script from the command prompt and you will see the below massage.
beasvc <service-name> removed.

PREPARED BY RAVI KUMAR LANKE

Page 5

Más contenido relacionado

La actualidad más candente

Steps in installing my sql
Steps in installing my sqlSteps in installing my sql
Steps in installing my sql
kasih Lieyda
 

La actualidad más candente (20)

Timer Interceptor in Mule
Timer Interceptor in MuleTimer Interceptor in Mule
Timer Interceptor in Mule
 
Steps in installing my sql
Steps in installing my sqlSteps in installing my sql
Steps in installing my sql
 
Example mule
Example muleExample mule
Example mule
 
Java Servlet Lifecycle
Java Servlet LifecycleJava Servlet Lifecycle
Java Servlet Lifecycle
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Getting anypoint studios all versions
Getting anypoint studios all versionsGetting anypoint studios all versions
Getting anypoint studios all versions
 
Configurare https mule
Configurare https muleConfigurare https mule
Configurare https mule
 
Start stop-weblogic
Start stop-weblogicStart stop-weblogic
Start stop-weblogic
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copy
 
Running mule standalone
Running mule standaloneRunning mule standalone
Running mule standalone
 
Mule management console installation with Tomcat
Mule management console installation with TomcatMule management console installation with Tomcat
Mule management console installation with Tomcat
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Mule velocity
Mule velocityMule velocity
Mule velocity
 
Mule esb first http connector
Mule esb first http connectorMule esb first http connector
Mule esb first http connector
 
Mule with drools
Mule with droolsMule with drools
Mule with drools
 
Mule using Salesforce
Mule using SalesforceMule using Salesforce
Mule using Salesforce
 
Autosupport email sending failed issue netapp cluster mode-
Autosupport email sending failed issue netapp cluster mode-Autosupport email sending failed issue netapp cluster mode-
Autosupport email sending failed issue netapp cluster mode-
 
Mule esb - How to use Idempotent Filters in 5 minutes
Mule esb - How to use Idempotent Filters in 5 minutesMule esb - How to use Idempotent Filters in 5 minutes
Mule esb - How to use Idempotent Filters in 5 minutes
 
Web Application Development using MVC Framework Kohana
Web Application Development using MVC Framework KohanaWeb Application Development using MVC Framework Kohana
Web Application Development using MVC Framework Kohana
 

Destacado

游戏运营(第二讲)
游戏运营(第二讲)游戏运营(第二讲)
游戏运营(第二讲)
www.emean.com
 
Marketing Applied To A Different Culture, The Case Of Japan
Marketing Applied To A Different Culture, The Case Of JapanMarketing Applied To A Different Culture, The Case Of Japan
Marketing Applied To A Different Culture, The Case Of Japan
guest732520
 
Gibam Shops
Gibam ShopsGibam Shops
Gibam Shops
bogipan
 
Evolution - Hacking Innovation Roofcamp Philippines
Evolution - Hacking Innovation Roofcamp PhilippinesEvolution - Hacking Innovation Roofcamp Philippines
Evolution - Hacking Innovation Roofcamp Philippines
Derek Neighbors
 
Cloud Computing: the last step in IT commoditisation
Cloud Computing: the last step in IT commoditisationCloud Computing: the last step in IT commoditisation
Cloud Computing: the last step in IT commoditisation
ISPABelgium
 

Destacado (20)

Intelligence
IntelligenceIntelligence
Intelligence
 
2008ko Txostena
2008ko Txostena2008ko Txostena
2008ko Txostena
 
Duurzame ambities - Liggen we op koers
Duurzame ambities - Liggen we op koersDuurzame ambities - Liggen we op koers
Duurzame ambities - Liggen we op koers
 
Giornalino n. 1
Giornalino n. 1Giornalino n. 1
Giornalino n. 1
 
游戏运营(第二讲)
游戏运营(第二讲)游戏运营(第二讲)
游戏运营(第二讲)
 
Netflix
NetflixNetflix
Netflix
 
Marketing Applied To A Different Culture, The Case Of Japan
Marketing Applied To A Different Culture, The Case Of JapanMarketing Applied To A Different Culture, The Case Of Japan
Marketing Applied To A Different Culture, The Case Of Japan
 
Inverted Nipple Correction
Inverted Nipple CorrectionInverted Nipple Correction
Inverted Nipple Correction
 
Rendement is meer dan alleen het verbeteren van het energielabel
Rendement is meer dan alleen het verbeteren van het energielabelRendement is meer dan alleen het verbeteren van het energielabel
Rendement is meer dan alleen het verbeteren van het energielabel
 
Verduurzamen door samen waarde te creeëren, PPS bij verduurzaming vastgoed - ...
Verduurzamen door samen waarde te creeëren, PPS bij verduurzaming vastgoed - ...Verduurzamen door samen waarde te creeëren, PPS bij verduurzaming vastgoed - ...
Verduurzamen door samen waarde te creeëren, PPS bij verduurzaming vastgoed - ...
 
Introductie van Agentschap NL
Introductie van Agentschap NLIntroductie van Agentschap NL
Introductie van Agentschap NL
 
Gibam Shops
Gibam ShopsGibam Shops
Gibam Shops
 
eBook: Reductions in Force - A Ten Point Inspection
eBook: Reductions in Force - A Ten Point InspectioneBook: Reductions in Force - A Ten Point Inspection
eBook: Reductions in Force - A Ten Point Inspection
 
Evolution - Hacking Innovation Roofcamp Philippines
Evolution - Hacking Innovation Roofcamp PhilippinesEvolution - Hacking Innovation Roofcamp Philippines
Evolution - Hacking Innovation Roofcamp Philippines
 
Dic 2
Dic    2Dic    2
Dic 2
 
Efficiënt Beheer Leidt Tot Kostenbesparing En Comfortverhoging
Efficiënt Beheer Leidt Tot Kostenbesparing En ComfortverhogingEfficiënt Beheer Leidt Tot Kostenbesparing En Comfortverhoging
Efficiënt Beheer Leidt Tot Kostenbesparing En Comfortverhoging
 
Cloud Computing: the last step in IT commoditisation
Cloud Computing: the last step in IT commoditisationCloud Computing: the last step in IT commoditisation
Cloud Computing: the last step in IT commoditisation
 
Globalsat
GlobalsatGlobalsat
Globalsat
 
TEMA 1 Resum per estudiar
TEMA 1 Resum per estudiarTEMA 1 Resum per estudiar
TEMA 1 Resum per estudiar
 
Energiebesparing met prestatiecontracten
Energiebesparing met prestatiecontractenEnergiebesparing met prestatiecontracten
Energiebesparing met prestatiecontracten
 

Similar a Weblogic as a windows service

Hyperion 9.X Installation
Hyperion 9.X InstallationHyperion 9.X Installation
Hyperion 9.X Installation
Sandeep Chekuri
 
Weblogic installation in linux
Weblogic installation in linuxWeblogic installation in linux
Weblogic installation in linux
Ravi Kumar Lanke
 
domain-routing-220627173025-41f4dc7e (1).pdf
domain-routing-220627173025-41f4dc7e (1).pdfdomain-routing-220627173025-41f4dc7e (1).pdf
domain-routing-220627173025-41f4dc7e (1).pdf
ssusere9bd3b
 

Similar a Weblogic as a windows service (20)

Weblogic application server
Weblogic application serverWeblogic application server
Weblogic application server
 
New Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP ConnectorsNew Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP Connectors
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestration
 
Building drupal web farms with IIS - part 1
Building drupal web farms with IIS - part 1Building drupal web farms with IIS - part 1
Building drupal web farms with IIS - part 1
 
installation and configuration of informatica server
installation and configuration of informatica serverinstallation and configuration of informatica server
installation and configuration of informatica server
 
Hyperion 9.X Installation
Hyperion 9.X InstallationHyperion 9.X Installation
Hyperion 9.X Installation
 
Weblogic installation in linux
Weblogic installation in linuxWeblogic installation in linux
Weblogic installation in linux
 
domain-routing-220627173025-41f4dc7e (1).pdf
domain-routing-220627173025-41f4dc7e (1).pdfdomain-routing-220627173025-41f4dc7e (1).pdf
domain-routing-220627173025-41f4dc7e (1).pdf
 
domain-routing.pptx
domain-routing.pptxdomain-routing.pptx
domain-routing.pptx
 
Oracle autovue
Oracle autovueOracle autovue
Oracle autovue
 
Mysql
MysqlMysql
Mysql
 
Drupal Development with Docker
Drupal Development with DockerDrupal Development with Docker
Drupal Development with Docker
 
DCHQ Cloud Application Platform | Linux Containers | Docker PaaS
DCHQ Cloud Application Platform | Linux Containers | Docker PaaSDCHQ Cloud Application Platform | Linux Containers | Docker PaaS
DCHQ Cloud Application Platform | Linux Containers | Docker PaaS
 
How to set up a Windows Domain on AWS
How to set up a Windows Domain on AWS How to set up a Windows Domain on AWS
How to set up a Windows Domain on AWS
 
Installing and Setup Web Server
Installing and Setup Web ServerInstalling and Setup Web Server
Installing and Setup Web Server
 
Configuring was webauth
Configuring was webauthConfiguring was webauth
Configuring was webauth
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editor
 
Monitoring Agile PLM with JConsole
Monitoring Agile PLM with JConsole Monitoring Agile PLM with JConsole
Monitoring Agile PLM with JConsole
 
Aws overview part 2(compute services)
Aws overview   part 2(compute services)Aws overview   part 2(compute services)
Aws overview part 2(compute services)
 
Windows Attacks AT is the new black
Windows Attacks   AT is the new blackWindows Attacks   AT is the new black
Windows Attacks AT is the new black
 

Más de Ravi Kumar Lanke

Más de Ravi Kumar Lanke (20)

Creating and configuring vnc sessions
Creating and configuring vnc sessionsCreating and configuring vnc sessions
Creating and configuring vnc sessions
 
Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...
 
Exporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle databaseExporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle database
 
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
 
Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server
 
Enabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bitEnabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bit
 
Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...
 
Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7
 
How to find ip and mac address
How to find ip and mac addressHow to find ip and mac address
How to find ip and mac address
 
Step by step deployment of sampleappv406
Step by step deployment of  sampleappv406Step by step deployment of  sampleappv406
Step by step deployment of sampleappv406
 
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bitInstalling and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
 
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
 
Installing my sql on windows
Installing my sql on windowsInstalling my sql on windows
Installing my sql on windows
 
How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...
 
How to disable and enable task manager
How to disable and enable task managerHow to disable and enable task manager
How to disable and enable task manager
 
Deploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame worksDeploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame works
 
Installing oracle endeca commerce
Installing oracle endeca commerceInstalling oracle endeca commerce
Installing oracle endeca commerce
 
How to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise mangerHow to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise manger
 
How to change the obiee 11g browser title
How to change the obiee 11g browser titleHow to change the obiee 11g browser title
How to change the obiee 11g browser title
 
Creating new service name for oracle database
Creating new service name for oracle databaseCreating new service name for oracle database
Creating new service name for oracle database
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Weblogic as a windows service

  • 1. WEBLOGIC AS A WINDOWS SERVICE PREPARED BY RAVI KUMAR LANKE Page 1
  • 2. The below post describes the installation of WebLogic server as a windows service, we will look at how we can install the Admin Server as well as Managed server as a service. Steps: 1. Create an install batch script that contains the domain, server details. Installing Admin Server as a service. Create an install script as below. ————————————————— 1 SETLOCAL 2 3 set DOMAIN_NAME=Wonders_Domain 4 5 set USERDOMAIN_HOME=C:BEA103user_projectsdomainsWonders_Domain 6 7 set SERVER_NAME=AdminServer 8 9 set WL_HOME=C:BEA103wlserver_10.3 10 11 set WLS_USER=weblogic 12 13 set WLS_PW=weblogic 14 15 set PRODUCTION_MODE=true 16 17 set MEM_ARGS=-Xms512m –Xmx512m 18 19 call "%WL_HOME%serverbininstallSvc.cmd" 20 21 ENDLOCAL ————————————————— PREPARED BY RAVI KUMAR LANKE Page 2
  • 3. Installing Managed Server as Windows Service: If you want to install a Managed Server as a Windows service, you must include a variable that specifies the location of the domain’s Administration Server. The Managed Server must contact the Administration Server to retrieve its configuration data. The Administration Server (which is not a service) must be started before installing and starting Managed Server as a Windows service. Create an install script as below. ————————————————— 1 echo off 2 SETLOCAL 3 4 set DOMAIN_NAME= Wonders_Domain 5 set USERDOMAIN_HOME= C:BEA103user_projectsdomainsWonders_Domain 6 set SERVER_NAME=ManagedServer1 7 set PRODUCTION_MODE=true 8 9 set WL_HOME=C:BEA103wlserver_10.3 10 11 set ADMIN_URL=http://<adminserver-host>:7501 12 13 set MEM_ARGS=-Xms40m -Xmx250m 14 15 call "%WL_HOME%serverbininstallSvc.cmd" PREPARED BY RAVI KUMAR LANKE Page 3
  • 4. NOTE: If you set up both an Administration Server and a Managed Server to run as Windows services on the same computer, you can specify that the Managed Server starts only after the Administration Server. In that scenario we need to pass the below argument while running the script. -delay:delay_milliseconds For example: "%WL_HOME%serverbinbeasvc" -install -svcname:"%DOMAIN_NAME%_%SERVER_NAME%" -delay:120000 2. After running this script in the command prompt you will observe a log statement such as “beasvc <Server> installed” You can check the same from the services list as well using the services.msc utility. 3. Verify whether the WebLogic Server is successfully installed as a service as below. Open a command window and enter the following command: set PATH=WL_HOMEserverbin;%PATH% Navigate to the WLS_SERVER_HOME/server/bin Enter: beasvc -debug “yourServiceName“ For Example: C:BEA103wlserver_10.3serverbin>beasvc -debug “beasvc Wonders_Domain_AdminServer” 4. You can start / stop the server from the services.msc window or you can also use the below commands. Starting the service: net start “beasvc Wonders_Domain_AdminServer” Stopping the service: net stop “beasvc Wonders_Domain_AdminServer” Note: For each server instance that you set up as a Windows service, WebLogic Server creates a key in the Windows Registry underHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices. The registry entry contains such information as the name of the server and other startup arguments. Uninstall the WebLogic server as a windows service. PREPARED BY RAVI KUMAR LANKE Page 4
  • 5. 1. Create an Uninstall script as below. ****************************************************** 1 echo off 2 3 SETLOCAL 4 5 set DOMAIN_NAME= Wonders_Domain 6 set SERVER_NAME=AdminServer 7 set WL_HOME=G:BEA103wlserver_10.3 8 9 call "%WL_HOME%serverbinuninstallSvc.cmd" 10 11 ENDLOCAL ****************************************************** 2. Execute the script from the command prompt and you will see the below massage. beasvc <service-name> removed. PREPARED BY RAVI KUMAR LANKE Page 5