Skip to content

DataSplice Support Website

Sections
Personal tools
You are here: Home » Product Manuals DataSplice 3.0 » DataSplice MAXIMO 5.x Integration Plug-in Manual » Running the Java Proxy as a Service

Running the Java Proxy as a Service

Rather than running the Java proxy as an application, you can alternatively run it as a user-defined service. This allows it to run independently of a user being logged in and having the application open. Before you can create a user-defined service, you need to obtain two files if you do not already have them:

  • INSTSRV.EXE
  • SRVANY.EXE

Both of these files are part of the Windows NT (or higher) Resource Kit, and can be downloaded directly from Microsoft. Once you have these two files, you can create a user-defined service for the Java proxy by completing the following steps:

  1. Open an MS-DOS command prompt and type the following:

    path\INSTSRV.EXE My Service path\SRVANY.EXE

    Where path is the drive and directory of the Windows NT Resource Kit (such as C:\Program Files\Resource Kit) and My Service is the name of the service you are creating.

    Example:

    C:\Program Files\Resource Kit\Instsrv.exe DataSpliceProxy C:\Program Files\Resource Kit\Srvany.exe

    To verify that the service was created correctly, check the registry to verify that the ImagePath value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DataSpliceProxy is set to point to SRVANY.EXE. If this is not set correctly, the service will stop shortly after it starts and return an "Event ID 7000 - The DataSpliceProxy failed to start" error.

    Using the Registry Editor incorrectly can cause serious problems that may cause your computer to stop functioning correctly, and may require you to reinstall your operating system. Use Registry Editor at your own risk.

  2. Click Start > Run. Type Regedt32 and click OK to run the Registry Editor.
  3. Locate the following subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DataSpliceProxy
  4. From the Edit menu, click Add Key. Type the following and click OK:

    Key Name: Parameters

    Class: leave blank

  5. Select the Parameters key.
  6. From the Edit menu, click Add Value. Type the following and click OK:

    Value Name: Application

    Data Type: REG_SZ

    String: ..\jre\bin\java.exe -cp activation.jar;jnbcore.jar;mail.jar;.. com.jnbridge.jnbcore.JNBMain /props jnbcore.properties

  7. From the Edit menu, click Add Value. Type the following and click OK:

    Value Name: AppDirectory

    Data Type: REG_SZ

    String: C:\MAXIMO\DotNetProxy

  8. Click Registry > Exit to close the Registry Editor.

By default, a newly created service is set to run automatically when the system is restarted. After the service has been created, you should restart the computer to allow the service to begin.

 


Last modified 2006-01-17 04:57 PM
 

Powered by Plone

This site conforms to the following standards: