6 2 1 Configure the LANSA for the Web Configuration file l4w3serv cfg

Install LANSA on Linux

6.2.1 Configure the LANSA for the Web Configuration file (l4w3serv.cfg)

The Servlet configuration file contains the connection information used by the Servlet to connect the Web Server to the Data/Application Server. The configuration file contains the connection information to connect the Web Server to the Data/Application Server. This file is created and maintained using the LANSA for the Web Administrator (Local Configuration) and must be named l4w3serv.cfg. (Note that the file name must all be in lower case).

The following example describes a simple setup and does not make use of options such as Authentication or HTTP Header variables.

Follow these steps to create a simple Servlet configuration file.

Define the Web Server:

1.  Start the LANSA for the Web Administrator by opening the LANSA folder from the LANSA icon on your desktop, selecting the Setting and Administration folder and choosing the Web Administrator from the list.

2.  From the Options menu select Local Configuration and choose New to create a new Servlet configuration file

3.  From the Tools menu select Web Server and verify that the default settings displayed on the File Location tab and the Trace tab are valid for your installation.

Define the connection parameters to the Data/Application server:

1.  Select the Tools menu, choose the Maintain Systems sub-menu to display the Maintain Systems (local) dialog box.

2.  In this dialog, press the Add button to display the Add LANSA System dialog.

3.  Select the Web Server tab and specify the parameters.

 

In this sample installation, Any is selected as the Web Server Name and the Port number is specified as '80' (the default port for HTTP).

If you enter a Web Server Name, be aware that due to restrictions on some DNS servers, it is necessary to enter it in lower case.

4.  Select the Data/Application Server tab and specify the parameters.

     In this sample installation, 'MyLANSAHost' is entered as the LANSA System. This parameter must the same as the Partner LU Name specified in the Communications Route Table (lroute.dat) file.

     'cp037'  is entered as the Code Page if the Data/Application Server is an IBM i Data/Application Server.

5.  The default settings are used for the remaining tabs.

6.  Save the Servlet configuration file with the name l4w3serv.cfg. Make sure that you save the file with the correct name and that the file name is in lowercase.