wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Automatically reconnect to server ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Automatically reconnect to server ?" Watch "Automatically reconnect to server ?" New topic
Author

Automatically reconnect to server ?

Liviu Carausu
Ranch Hand

Joined: Oct 07, 2004
Posts: 158
Hi,
I have tested my application in the following way : I have stopped the server (unexport the RMI object from the registry). The client had in this way a invalid reference to the remote object. After restarting the server and publishing the object with the same name, the client reference was still not valid and ,of course, any further request using the invalid reference failed.
But, anyway, the server was running and I have the situation that the client was invalid.
Do you think that some logic to obtain a new reference to the exported rmi object is needed or this is beyond the scope of the application ?
Thanks,
Liviu


Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer.
Romeo Son
Ranch Hand

Joined: Mar 12, 2007
Posts: 92

Hi,

I think it is beyond the scope of the assignment.


SCJP 1.4, SCJD, OCE EJBD 6
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi Liviu

I also think that will be to much. You can (must) document this and you can provide a reconnect feature for the client and let the user to decide to reconnect or not.At list this is what I have done.

Regards,
M
[ June 13, 2007: Message edited by: Mihai Radulescu ]

SCJP, SCJD, SCWCD, OCPJBCD
Maciej Miklas
Ranch Hand

Joined: Feb 12, 2007
Posts: 61
no, I do not do it.

Maciej
 
GeeCON Prague 2014
 
subject: Automatically reconnect to server ?