Stephen, Andrew,
After I posted this issue, I noticed that
the problem was application dependent, i.e. when my web app was invoked
from an applet, shutdown and startup work as advertised. However, when the web
app was invoked from my client app, in which I use a URLConnection
object to talk to the web-app, subsequent shutdown and startup exhibited the
address-in-use problem.
The fix was to do a disconnect() on
the client app's URLConnection (casting it to an HttpURLConnection). The
implication is that the browser (IE 5.0) is already well-behaved in this regard,
so applets did not exhibit the problem.
As to why this client-side problem affected
the webserver, I assume it is because the web-server and client share
the same TCP stack (I'm developing in loopback mode at present). I'll check that
assumption later on, when I deploy to the real server.
Bill.
|
- Shutdown causes Address in use: JVM_Bind Bill Winspur
- Re: Shutdown causes Address in use: JVM_Bind Stephen Davidson
- Bill Winspur