The Artima Developer Community
Sponsored Link

Java Answers Forum
Garbage Collection of Remote Objects

1 reply on 1 page. Most recent reply: Jun 11, 2002 10:11 PM by Premjit

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
leejo

Posts: 1
Nickname: lee123
Registered: Jun, 2002

Garbage Collection of Remote Objects Posted: Jun 11, 2002 7:32 PM
Reply to this message Reply
Advertisement
We are developing an application in which we are using RMI.Now the problem is that after binding an object to the RMI registry Naming.lookup works fine but after some hours it gives and error message "Connection refused" .What could be wrong?I read somewhere that happens because the remote object gets garbage collected?if so what should i do to prevent it?
Leejo


Premjit

Posts: 2
Nickname: jitu
Registered: Jun, 2002

Re: Garbage Collection of Remote Objects Posted: Jun 11, 2002 10:11 PM
Reply to this message Reply
instead of bind() in ur code for binding objects to the registry, may be rebind() method can solve this problem.

Flat View: This topic has 1 reply on 1 page
Topic: Singleton Previous Topic   Next Topic Topic: exit function in frames

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use