...
toptop Anchor
This article will show you how to configure Apache Geronimo v2.1 to run as a Microsoft Windows service. 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.
...
To set up Apache Geronimo v2.1 to run as a Microsoft Windows service you will certainly need a Java Service Wrapper. For this example we used Java Service Wrapper 3.2.3 available for download at the following URL:
http://sourceforge.net/projects/wrapper/
For this example we are also using Apache Geronimo v2.1 running on Windows XP. You can download Apache Geronimo binaries from the following URL:
http://geronimo.apache.org/downloads.html
Installing Apache Geronimo
...
Installing the Java Service Wrapper
Installing the wrapper is as simple as installing Apache GeronimoFollow the instictions for installing Java Service Wrapper. Once you downloaded download the right version for your environment you can extract the zip file to a directory of your convenience, throughout . Throughout the rest of the article this directory will be referred to as <jsw_home>.
For this particular example we will try to locate all the wrapper related files within the Geronimo directory structure, so we will have to copy some files over.
Once you installed install the wrapper copy these as indicated in the following table.
...
<geronimo_home>/bin/g_service.bat
<geronimo_home>/bin/Install_Geronimo_NT.bat
<geronimo_home>/bin/Uninstall_Geronimo_NT.bat
<geronimo_home>/var/config/wrapper.conf
Configuring the
...
Wrapper
The Java Service Wrapper comes with a sample configuration file wrapper.conf pre-configured to run a test script also provided, this file located in the <jsw_home>\conf directory. In this section we provide a Geronimo specific wrapper.conf file for your convenience.
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/confconfig/wrapper.conf directory.
...
...
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.
...
Next we will create a batch file to run the service from the command line without the need of actually installing the service. This is particularly helpful when testing and debugging the configuration. Create the g_service.bat
batch file in the <geronimo_home>/bin directory and copy the content of the following example.
...
...
This file is a modified version from the one provided by the wrapper as a sample, it has been edited to specify the location of the wrapper.conf
file relative to Geronimo's var/config directory.
...
You should see a screen similar to the following example, note that part has been truncated for display purposes. bgColor No Format
#000000
Congratulations!!! you have now Geronimo server running as a Windows service.
...
The following two batch files are provided to install and remove Geronimo as a Windows service. Create the files in the <geronimo_home>/bin
directory and copy the content as depicted in the following examples.
...
...
To install Apache Geronimo as a MS Windows service run the following command:
...
You should get a confirmation screen similar to this example. bgColor No Format
#000000
...
...
To remove the Apache Geronimo service run the following command:
...
You should get a confirmation screen similar to this example. bgColor No Format
#000000