Step 2. Add Routing Table to Application

Your web application will access the application server via a LANSA Listener. The package install will define a Listener. You must define the port number to be used by this LANSA Listener. The Listener is defined at Application level.

1.  In the main Deployment Tool window, select the WEBAPP application. Select the  Communications Administrator toolbar button.

2.  The Communications Administrator is used in two ways by the Deployment Tool.

     Your web application deployment needs to define a listener for the data and application server it will be installing.

3.  Select Listener from the Advanced menu.

     The server application listener needs a Connection Identifier (port number) which will be unique on the machine it is to be installed onto. In this exercise, you will be installing the server application to your own PC. If you have one copy of Visual LANSA installed, you already have one listener, usually using a default Connection Identifier of 4545. If you have completed the Deploying Applications using JIT exercises you will have another listener for the JIT server. The suggested port number for this was 4547.

     The LANSA Listener is a local Windows service and if necessary, you can check how many listeners you already have using Windows Control Panel / Administrative Tools / Services:

     Scroll down to find the LConnect entries. The example shown above is unusual. This trainer's PC has a number of Visual LANSA installations, as well as a number of deployed applications.

     If necessary, you can find the Communications Administrator for each LANSA installation and then find its Connection Identifier.

a.  Enter any suitable value in the Connection Identifier. In most cases this could be 4546, but you must use a value that is unique for your PC.

b.  Click OK to close the Listener Information dialog.

c.  Close the Route Information dialog.

     You will see this message box after defining the Listener information. You will build the package in a later step.