DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15893>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15893 Need a getPort() method on Connector or similar functionality Summary: Need a getPort() method on Connector or similar functionality Product: Tomcat 4 Version: 4.1.18 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We use the Embedded Tomcat as a help server in Eclipse and have a need to run Tomcat on an arbitrary port. In particular, we want to createa Connector by passing port=0, have the system pick up port when a ServetSocket is created, and later we want to retrieve that port. possible solution is to add a getPort() method on the Connector. In 4.0.4, we got around this by setting our own ServerSocketFactory on the Connector, and keep track of the port created. We were looking at moving to Tomcat 4.1.18, but the factory there is only used for secure connections, for the other connection a DefaultServerSocketFactory is used, so we're stuck. A possible solution is to add a getPort() on the Connector that can return the real port used. There would be a sequencing problem here, as thep port may only be known after the Connector is started, but that'll be ok. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>