AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RMI reconnect

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Sep 14, 2006 3:42 am    Post subject: RMI reconnect Reply with quote



Hi.

I was just wondering if anybody had any ideas on how to handle
reconnections to a Remote object, if the server bound object goes down,
then comes back up while the client stays up.

That is say:
1. The server comes up and bind the server object by name.
2. The client comes up and does a lookup of the bound object by name.
3. The server goes down.
4. The server comes up and reissues step 1.
5. The client makes a call to the object, resulting in an exception
because the remote is no longer valid.

Is there a way to check to see if the remote is valid or not before I
make the remote call?

Thanks for any advice?
- Ian
Back to top
EJP
Guest





PostPosted: Sun Oct 22, 2006 6:21 pm    Post subject: Re: RMI reconnect Reply with quote



ian.a.desouza (AT) gmail (DOT) com wrote:
Quote:
Is there a way to check to see if the remote is valid or not before I
make the remote call?

You mean like foretell the future? Actually no.

You have to catch the NoSuchObjectException and reissue the lookup and
the remote call.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.