Changing the port used by the WebFacing server

The WebFacing server acts as a gateway between WebSphere® Application Server and your original i5/OS® application. The WebFacing server will listen on a predefined TCP port to exchange data with WebFacing applications (Web or portlet). All WebFacing applications connecting to the server on the same i5/OS need to be configured to connect to the assigned TCP port. By default, the server listens on port 4004. This value can be changed using the i5/OS WKSRVTBLE command to modify the TCP service as-WebFacing. The server needs to be restarted for the change to take effect and all WebFacing applications need to be reconfigured accordingly in the runtime properties of the WebFacing projects and redeployed.

Changing the WebFacing runtime port on your i5/OS server

  1. Access the Work with Service Table Entries screen. From an i5/OS server command line, enter the command: WRKSRVTBLE. The Work with Service Table Entries screen is displayed.
  2. Page down to the as-WebFacing service.
    Note: If you have not redefined the WebFacing port manually before, you will not see an entry for as-WebFacing. If you have not previously manually defined a WebFacing port, skip to the step Add a new entry for as-WebFacing.
  3. Select option 5=Display to display the port information for the WebFacing server. Unless you have changed the port, the default is 4004. Press Enter or F12 to return to the Work with Service Table Entries screen.
  4. To change the port, you first need to remove an existing entry for as-WebFacing, if you have one, by selecting option 4=Remove.
  5. Add a new entry for as-WebFacing.
    1. Access the Add Service Table Entry screen. Select option 1=Add. The Add Service Table Entry screen is displayed.
    2. In the Service field, between the single quotes, enter as-WebFacing.
    3. In the Port field, enter the new port number that you would like to use.
    4. In the Protocol field, between the single quotes, enter tcp .
    5. Press Enter. Your new WebFacing service entry is added.
After you have changed the WebFacing runtime port on your i5/OS server, follow the steps in Changing the port used by your WebFacing applications to change the port used by your WebFacing applications so your WebFacing applications will work properly with the new port.
Note: This port is used only for communications between the WebFacing application and the WebFacing server, it is not the port that you may specify on the browser to access your WebFacing Web application.

Feedback