I have written a
Java component prototype to hit a server by multiple
client .each client when ask the server for the service from the server
server will provide a port and client will invoke the
rmi://call to the service in that port and get the service .
Each client will not know if some other client is also accessing the same service using the other port .
Thats is my component and so far so good .
Now I have a problem in this program ,If a client shut down it not been known to server so the server is not unbinding the port as a result that port which was accessing by the the client is get busy for ever
I dont want that ,I want if the client is get down server automatically know the event and in that case it will unbind the port and can be used by other new client later ..
How can I catch a event in the server side that a dedicated client is down ?
I actually want to write a Listener event that listen in rmi port .
Thanks in advance .