Knowledge Base >> How to Setup "Ignite for Java Setup Wizard" as a Windows Service

How to Setup "Ignite for Java Setup Wizard" as a Windows Service - Confio Article 1537

Confio Article: 1537 Published: Feb 18 2009 1:04 AM
Version: All Topic(s): Ignite Features
Product(s): Ignite
Database(s): Not Applicable

Follow these steps to set up "Ignite for Java Setup Wizard" as a Windows Service:

  1. Edit the file <Ignite Home>/tomcat/bin/service.bat

    Replace these two lines:

            set SERVICE_NAME=Tomcat5
            set PR_DISPLAYNAME=Apache Tomcat


    With these lines:

           set SERVICE_NAME=IgniteI4J
           set PR_DISPLAYNAME=Ignite I4J

  2. Open a Windows command prompt.

  3. Set the JAVA_HOME environment variable to your Java Development Kit installation.

  4. Add JAVA_HOME/bin to your PATH environment variable.

  5. Make sure an environment variable CATALINA_HOME does not exist.  If one exists, remove it:

          set CATALINA_HOME=

  6. Change directory to the <Ignite Home>/tomcat/bin directory.

  7. Run the  service.bat with the parameter "install":

           service install

  8. Since a windows service has its working directory at c:\windows\system32 you will need to copy the four directories shown below to c:\ :

           copy <Ignite Home>/conf to c:\
           copy <Ignite Home>/data to c:\
           copy <Ignite Home>/instrument to c:\
           copy <Ignite Home>/logs to c:\

  9. Open your Windows Services screen and look for the service "Ignite I4J".  If you don't see it, try refreshing the screen.

  10. Start the service.

  11. If you want to have the service start when Windows starts, change the service's Startup Type to "Automatic".  You can do this by right-clicking on the service, clicking on Properties, changing the Startup Type, and pressing OK.

  12. Bring up the link (http://<Machine Name>:8081 or http://<Machine IP>:8081) in your browser.

 

 To remove the service:

  1. Open a Windows command prompt.
  2. Change directory to <Ignite Home>/tomcat/bin
  3. Run the following command:

                   service remove