• Post Reply Bookmark Topic Watch Topic
  • New Topic

unreferenced works strange

 
Eru Stone
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a server that is bound the rmiregistry. The server has a method getBlah witch returns a reference to a Blah object to a client. Blah extends UnicastRemoteObject. I can start and kill many clients that call getBlah and everything works fine. The server doesn't ever finish...
But now I wanted to do some cleanup in Blah and implemented the Unreferenced interface. I noticed that the unreferenced method is suddenly called on all Blah objects, also on those that still are used by a client!!? And even worse, after that the server process finishes without any exception or error or core dump message!
Does anybody know what's going wrong?
Thanks in advance
Eru
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!