You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by Rob Walker <ro...@softsell.com> on 2002/05/23 11:07:29 UTC
Dynamic Web Server port assignment
Part of our app. creates a "callback" web server, for receiving asynchronous
event notification.
I'd like to have the WebServer class pick a dynamic port for me, and from what I
can see if a pass a port number of "0" into the constructor it will do this. Snag is,
the serverSocket field is a protected variable and there's no getXXX method to
gbet the actual port number assigned. Seems I can probably subclass
WebServer to get around this, but wondered if anyone felt it merited inclusion in
the base class.
-- Rob Walker
SoftSell Business Systems, Ltd.
' testing solutions for a changing world '
+44 (20) 7488 3470
www.softsell.com
robw@softsell.com