...
anchortop
...
...
Apache Commons Daemon
Software Prerequisites
...
<geronimo_home>\bin\service_pr.bat install
For example:
...
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 using <geronimo_home>\bin\geronimosrvw.exe
tool.
...
...
By default the Geronimo service is be configured with "manual" startup type. Use Windows' Services
tool or geronimosrvw.exe
command to configure it to "automatic" if needed.
Default admin account "system" with password "manager" is used to shut down the service. Change this setting with the geronimosrvw.exe tool (in the "Shutdown" tab) if the default admin account is changed.
JAVA_OPTS and GERONIMO_OPTS environment variables are NOT read by the service_pr.bat script. If you need to add any options that shall be used to start/stop the service, you can use the geronimosrvw.exe tool to add them to the command line arguments in the "Startup" and/or "Shutdown" tab. You can also use the geronimosrv.exe command to do that.
For more help on how to use the geronimosrv.exe and geronimosrvw.exe command, refer to Apache Commons Daemon manual.
...
To remove the Apache Geronimo service run the following command:
<geronimo_home>\bin\service_pr.bat remove
For example:
...
...
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.
...
As we are trying to keep all the wrapper files within Geronimo's directory structure, create the configuration file as illustrated in the following example and place it in the <geronimo_home>/var/config directory. output HTML
wiki
This service wrapper allows three different methods of integration depending on, among other things, whether you use the same class or not to start and stop the server.
...
You should see a screen similar to the following example, note that part has been truncated for display purposes.
...
...
Congratulations!!! you have now Geronimo server running as a Windows service.
...
You should get a confirmation screen similar to this example.
...
...
To remove the Apache Geronimo service run the following command:
...