I want to do some orphan threads monitoring(I use RMI).
So when a reference is comming,I save it(
thread object) into a map.
Then I will detect the status of the threads,if the thread is dead,I will release all the resource by it.
But the problem is: After a connecttion is lasting about 6 seconds,the thread is dead.(RMI TCP Connection(4)-192.168.2.149 is dead).
You know, at that time,I can do search and booking through the client GUI.
How to solve it?
Thanks a lot!!!