Previous Topic Next topic Print topic


Set a fixed port

By default, Enterprise Server uses ephemeral ports for its communication listeners, to prevent clashes occurring with other network software on your machine when a listener starts. However, this can make debugging more complex, since Enterprise Server is likely to be assigned a different port each time it starts.

To force Enterprise Server to use a fixed port number for debugging purposes:

  1. Open Enterprise Server Administration.
  2. On the row for JCLDEMO on Enterprise Server Administration page, click Details for the Listeners in the Communications Processes column.
  3. Click Edit on the row for Web Services and J2EE.
  4. The existing setting should be *:*.
  5. The second * indicates use an ephemeral port number.
  6. Change the Endpoint Address to *:5055 in order to use a fixed port.
  7. Click OK.
  8. Click Home on the left to return to the Enterprise Server Administration page.
  9. Start the Enterprise Server.

    During the startup sequence, watch for a mention of dynamic debug enabled. If you missed it, check the log by opening Enterprise Server Administration, clicking Edit in the JCLDEMO row, and selecting Server > Control > ES Monitor and Control > Display.

  10. Now that you have a fixed port, reassociate the region with your project in Server Explorer.
Previous Topic Next topic Print topic