It is possible to configure Kourier to use an embedded Java server to access Kourier’s Java library. The main advantage to this approach is that the Java run-time engine does not need to be created each time Kourier accesses its Java library (e.g., when a file is FTP’d from a U2 server to a target FTP site).
You can start Kourier’s Java server as a background process by using the
following command:
javaw -cp D:\DBMS\Live\KU2-DEV\KORE-JAVA\KMK-2.0\kmk.jar com.koretech.kmk.server.KourierServer
By default the Jetty Server will use the TCP port
8088. To override the default you can specify the port number in the
command line:
javaw -cp D:\DBMS\Live\KU2-DEV\KORE-JAVA\KMK-2.0\kmk.jar com.koretech.kmk.server.KourierServer 8800
On Microsoft Windows systems, you should create Scheduled Task similar to the one shown below:
1. Create a Task as shown below:
Note: the full text for the Run prompt is:
"C:\Program Files\Java\jre6\bin\javaw.exe" -cp D:\DBMS\Live\KU2-DEV\KORE-JAVA\KMK-2.0\kmk.jar com.koretech.kmk.server.KourierServer
2. Schedule the task to run At System Startup
You can start Kourier’s Java server as a background process by using the following command:
nohup /usr/java6/bin/java -cp /home/KOURIER/KORE-JAVA/KMK-2.0/kmk.jar com.koretech.kmk.server.KourierServer &
By default the Jetty server will use the TCP port 8088. To override the default you can specify the port number in the command line:
nohup /usr/java6/bin/java -cp /home/KOURIER/KORE-JAVA/KMK-2.0/kmk.jar com.koretech.kmk.server.KourierServer 8800 &
Many UNIX system administrators will add this command to the startup scripts for the server to make sure this server is available after a system reboot.
To determine if the Java server is running, you should be able to open an Internet browser and connect to your U2 server by typing into the URL field the name of the server and port number being used for the Java server in this format: http://<server-name>:<port-number>
Example: http://elsol:8088
After entering the URL the page should then display something similar to this:
KMK Version: 2.0.0
You can stop the Kourier java server by killing the process at the O/S level.