Installing Job Server as a Microsoft Windows Service

Overview

This article explains how to install the Job Server as a Microsoft Windows Service, and manage the service.

 

Environment

This procedure was written with:

  • Talend Enterprise Data Integration Professional edition for 5.0.2-r78327 (renamed Talend Data Integration in version 6.0)
  • JDK version: Sun JDK build 1.6.0_26-b03
  • Operating system: Windows XP SP3

 

Procedure

Change the log path of the Job Server

Before installing the Job Server as a service, change the path of the log file jobserver.log in the log4j.xml file. By default, the log file is saved to the C:\windows\system32 directory. To save the log file to another location, do the following:

  1. Go to the Job Server_install_path directory and open the log4j.xml file.

  2. Search for the following line:

    <param name="File"  value="jobserver.log" />

    Change it to:

    <param name="File"  value="the absolute path of another directory/jobserver.log" />
  3. Save the file.

 

Configure the jsl.ini file

If you have already installed the Job Server, an integrated jsl.ini file (or jsl_static64.ini for 64-bit systems) is available in the directory Job Server_install_dir/conf. Edit the file and adapt the following variables to your environment:

  1. Open the file and search for the following line:

    jrepath=C:\Program Files\Java\jdk1.5.0_14

    Change it to:

    jrepath=your_JDK_install_dir
  2. Edit the end of the file and change C:\jobserver\ to your_Job Server_install_dir. If you installed Studio using the installer, change C:\jobserver\ to your_Job Server_install_dir/agent.

    params = 6
    param00 = -cp
    param01 = c:\jobserver;c:\jobserver\lib\jmxremote_optional.jar;c:\jobserver\lib\log4j-1.2.15.jar;c:\jobserver\lib\commons-io-1.3.2.jar;c:\jobserver\lib\jsl.jar 
    param02 = -Djava.library.path=c:\jobserver\jsysmon-20061229\native\windows\ 
    param03 = -Dcom.sun.management.jmxremote 
    param04 = -Dtalend_props=c:\jobserver\conf\TalendJobServer.properties 
    param05 = org.talend.remote.jobserver.service.WindowsJobServer

    Change it as follows:

    params = 6
    param00 = -cp
    param01 = your-Job Server_install_dir;your-Job Server_install_dir\lib\jmxremote_optional.jar;your-Job Server_install_dir\lib\log4j-1.2.15.jar;your-Job Server_install_dir\lib\commons-io-1.3.2.jar;your-Job Server_install_dir\lib\jsl.jar
    param02 = -Djava.library.path=your-Job Server_install_dir\jsysmon-20061229\native\windows\
    param03 = -Dcom.sun.management.jmxremote
    param04 = -Dtalend_props=your-Job Server_install_dir\conf\TalendJobServer.properties
    param05 = org.talend.remote.jobserver.service.WindowsJobServer
    
  3. Save the file.

 

Test the service

After modifying the jsl.ini (or jsl_static64.ini for 64-bit systems) file, run jsl.exe -debug (or jsl_static64.exe -debug) to start the service for testing purposes before installation:

  1. Open a command prompt and cd into the Job Server_install_dir/conf directory.

    1_037.png

  2. Run the command jsl.exe -debug (or jsl_static64.exe -debug) to test starting the Job Server.

    2_033.png

  3. Verify that the Job Server started successfully. If not, confirm that the changes you made to the jsl.ini (or jsl_static64.ini) file are complete and correct.
  4. Press CTRL+C to stop the Job Server.

 

Install the service

After the Job Server starts, run the command jsl.exe -install (or jsl_static64.exe -install) to install the service.

As shown in the following figure, the service has been installed successfully as a Windows service.

3_016.png

Execute the command services.msc from a command prompt to start the services manager.

4_015.png

You will find a service called Talend JobServer in the list. Start the Job Server by starting the Talend Jobserver service in the Windows services manager.

 

Remove the service

To remove the service from the Windows services manager, execute the command jsl.exe -remove (or jsl_static64.exe -remove for 64-bit systems) from a command prompt.

5_012.png

Version History
Revision #:
4 of 4
Last update:
‎05-09-2017 07:23 PM
Updated by:
 
Labels (1)
Tags (1)