File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Reconnecting to a server

Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

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)??


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA

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

Joined: Mar 28, 2003
Posts: 11458
    
  94

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