...
<geronimo_home>\bin\service_pr.bat install
For example: No Format bgColor #000000 borderStyle solid
...
D:\geronimo-tomcat6-javaee5-2.2\bin>service_pr.bat
...
install
...
The
...
service
...
"geronimosrv"
...
has
...
been
...
installed.
...
This will create a Geronimo service for the server with the name "geronimosrv" with default parameters. You can start/stop the Geronimo service using Windows' Services
tool or by running <geronimo_home>\bin\geronimosrvw.exe
command.
...
<geronimo_home>\bin\service_pr.bat remove
For example: No Format bgColor #000000 borderStyle solid
D:\geronimo-tomcat6-javaee5-2.2\bin>service_pr.bat remove
The service 'geronimosrv' has been removed.
...
Java Service Wrapper
A Java Service Wrapper will be required as an additional software to achieve this configuration. Using a service wrapper gives you some additional "control" on the service you are configuring such as the ability to ping the service and take action if the service is down.
...
You should see a screen similar to the following example, note that part has been truncated for display purposes.
No Format bgColor #000000 borderStyle solid
{D:\geronimo-tomcat6-javaee5-2.2\bin>g_service.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | Booting Geronimo Kernel (in Java 1.5.0_06)...
jvm 1 | Starting Geronimo Application Server v2.2
jvm 1 |
jvm 1 | [* ] 0% 0s Loading
jvm 1 | [*- ] 0% 0s Loading org.apache.ge...
jvm 1 | [*> ] 6% 0s Loading org.apache.ge...
...
jvm 1 | [*********************************] 100% 19s Startup complete
jvm 1 | Listening on Ports:
jvm 1 | 1050 127.0.0.1 CORBA Naming Service
jvm 1 | 1099 0.0.0.0 RMI Naming
jvm 1 | 1527 0.0.0.0 Derby Connector
jvm 1 | 2001 127.0.0.1 OpenEJB ORB Adapter
jvm 1 | 4201 0.0.0.0 org.apache.geronimo.openejb.EjbDaemonGBean
jvm 1 | 4242 0.0.0.0 Remote Login Listener
jvm 1 | 6882 127.0.0.1 OpenEJB ORB Adapter
jvm 1 | 8009 0.0.0.0 Tomcat Connector AJP
jvm 1 | 8080 0.0.0.0 Tomcat Connector HTTP
jvm 1 | 8443 0.0.0.0 Tomcat Connector HTTPS
jvm 1 | 9999 0.0.0.0 JMX Remoting Connector
jvm 1 | 61613 0.0.0.0 ActiveMQ Transport Connector
jvm 1 | 61616 0.0.0.0 ActiveMQ Transport Connector
jvm 1 |
jvm 1 | Started Application Modules:
jvm 1 | EAR: org.apache.geronimo.configs/webconsole-tomcat/2.2/car
jvm 1 | RAR: org.apache.geronimo.configs/activemq-ra/2.2/car
jvm 1 | RAR: org.apache.geronimo.configs/system-database/2.2/car
jvm 1 | WAR: org.apache.geronimo.configs/dojo-tomcat/2.2/car
jvm 1 | WAR: org.apache.geronimo.configs/remote-deploy-tomcat/2.2/car
jvm 1 | WAR: org.apache.geronimo.configs/welcome-tomcat/2.2/car
jvm 1 |
jvm 1 | Web Applications:
jvm 1 | http://localhost:8080/
jvm 1 | http://localhost:8080/console
jvm 1 | http://localhost:8080/console-standard
jvm 1 | http://localhost:8080/dojo
jvm 1 | http://localhost:8080/remote-deploy
jvm 1 |
jvm 1 | Geronimo Application Server started
Congratulations!!! you have now Geronimo server running as a Windows service.
...
You should get a confirmation screen similar to this example.
No Format bgColor #000000 borderStyle solid
D:\geronimo-tomcat6-javaee5-2.2\bin>Install_Geronimo_NT.bat
wrapper | Apache Geronimo v2.2 Server installed.
No Format | ||||
---|---|---|---|---|
| ||||
@echo off setlocal rem Copyright (c) 1999, 2006 Tanuki Software Inc. rem rem Java Service Wrapper general NT service uninstall script rem if "%OS%"=="Windows_NT" goto nt echo This script only works with NT-based versions of Windows. goto :eof :nt rem rem Find the application home. rem rem %~dp0 is location of current script under NT set _REALPATH=%~dp0 rem Decide on the wrapper binary. set _WRAPPER_BASE=wrapper set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe if exist "%_WRAPPER_EXE%" goto conf set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe if exist "%_WRAPPER_EXE%" goto conf set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe if exist "%_WRAPPER_EXE%" goto conf echo Unable to locate a Wrapper executable using any of the following names: echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe echo %_REALPATH%%_WRAPPER_BASE%.exe pause goto :eof rem rem Find the wrapper.conf rem :conf set _WRAPPER_CONF="%~f1" if not %_WRAPPER_CONF%=="" goto startup set _WRAPPER_CONF="%_REALPATH%..\var\config\wrapper.conf" rem rem Uninstall the Wrapper as an NT service. rem :startup "%_WRAPPER_EXE%" -r %_WRAPPER_CONF% if not errorlevel 1 goto :eof pause |
...
You should get a confirmation screen similar to this example.
No Format bgColor #000000 borderStyle solid
D:\geronimo-tomcat6-javaee5-2.2\bin>Uninstall_Geronimo_NT.bat
wrapper | Apache Geronimo v2.2 Server removed.