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.EXESRVANY.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:
- Open an MS-DOS command prompt and type the following:
path\INSTSRV.EXE My Service path\SRVANY.EXE
Where
pathis the drive and directory of the Windows NT Resource Kit (such asC:\Program Files\Resource Kit) andMy Serviceis 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\DataSpliceProxyis set to point toSRVANY.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. - Click Start > Run. Type
Regedt32and click OK to run the Registry Editor. - Locate the following subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DataSpliceProxy
- From the Edit menu, click Add Key. Type the following and click OK:
Key Name:
ParametersClass:
leave blank - Select the Parameters key.
- From the Edit menu, click Add Value. Type the following and click OK:
Value Name:
ApplicationData Type:
REG_SZString:
..\jre\bin\java.exe -cp activation.jar;jnbcore.jar;mail.jar;.. com.jnbridge.jnbcore.JNBMain /props jnbcore.properties - From the Edit menu, click Add Value. Type the following and click OK:
Value Name:
AppDirectoryData Type:
REG_SZString:
C:\MAXIMO\DotNetProxy - 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