• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Automatically reconnect to server ?

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 92
Android Eclipse IDE Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think it is beyond the scope of the assignment.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, I do not do it.

Maciej
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic