 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Thu Sep 14, 2006 3:42 am Post subject: RMI reconnect |
|
|
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
|
Posted: Sun Oct 22, 2006 6:21 pm Post subject: Re: RMI reconnect |
|
|
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 |
|
 |
|
|
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
|
|