3 Replies Latest reply on Oct 15, 2006 1:50 PM by Darran Lofthouse

    JBWS-1115 - Automatic detection of Tomcat port

    Darran Lofthouse Master

      Quite often users are requesting the ability to automatically set the port to be used for WSDL generation / URL replacement.

      I would like to add something to 'ServerConfigImpl' to query all of the Tomcat connectors currently registered with the MBean server.

      Take the first connector with scheme 'http' and secure set to false as the webServicePort.

      Take the first connector with scheme 'http' and secure set to true as the webServiceSecurePort.

      If multiple connectors are found a warning can be logged.

      The values can then be injected into the ServiceEndpointManager.

      The majority of users appear to have a problem when they are changing the Tomcat port or using the binding manager, this implementation would cover this.

      For users with advanced use cases they can still modify the jboss-beans.xml as before.