jQuery in Action, 3rd edition
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Reconnecting to a 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 "Reconnecting to a server" Watch "Reconnecting to a server" New topic

Reconnecting to a server

Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 528

Is there any way that once i connect to a server that i can disconnect and provide another ip to connect to (using RMI that is)??


Live life to an interface, not an implementation!
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11776

Hi Marzo,

From the client side, you have just a local reference to the object you looked up - destroy it / replace it and you can connect to any other object on any other server.

I don't believe this is necessary for the SCJD project though.

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Reconnecting to a server
It's not a secret anymore!