Setting up the TCP/IP listener for a called non-J2EE application

If you are using TCP/IP to communicate with a called non-J2EE Java program, you must configure a standalone Java program called TcpipListener for that program. Specifically, you must follow these steps:
  • Make sure that the classpath used when running TcpipListener contains fda7.jar, and the directories or archives that contain the called programs; and
  • Set the tcpiplistener.port to the port number where TcpipListener receives data.
You can start the standalone TCP/IP listener in either of two ways:
  • To start the listener from the command line, run the program as follows:
    java com.ibm.javart.calls.listener.TcpipListener propertiesFile
    propertiesFile
    The fully qualified path to the properties file used by the TCP/IP listener. If you do not specify a properties file, the listener attempts to open the following file in the current directory:
      tcpiplistener.properties
  • To start the listener from the workbench, use the launch configuration for a Java application. In this case, you can specify the name of the properties file in the program arguments of the launch configuration. Alternatively, if you are using the filetcpiplistener.properties as a default, that file should not be in a folder, but should be directly under the project that you specified when you created the launch configuration.