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 in fact,first problem is about RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "in fact,first problem is about RMI" Watch "in fact,first problem is about RMI" New topic
Author

in fact,first problem is about RMI

Robin Lin
Greenhorn

Joined: May 30, 2002
Posts: 2
Hi,guys,
during implement my scjd project,two problem confuse me:
1)one client have connected with server,then,for some reason,server down,then,server restart,it's possible NOT restart client and client can reconnect to server?how i can fulfill this function?
2)i define a LockManager class,and in server side my design is:
ServerGUI-->ConnectManager-->RemoteDataImpl
i want to know the location of LockManager instance,in ServerGui or ConnectManager?i need to set this instance as static?
Thank u!
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
Originally posted by RobinLin:
it's possible NOT restart client and client can reconnect to server?how i can fulfill this function?

Yes. In the event of an error in remote communication, you can try to reconnect again from the client.
Originally posted by RobinLin:

2)i want to know the location of LockManager instance,in ServerGui or ConnectManager?i need to set this instance as static?

Between the RemoteDataImpl and the Data instance. Yes. You need to create a Singleton as long as your design permits only one instance of LockManager for all the tables all the time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: in fact,first problem is about RMI
 
Similar Threads
Server side GUI
Lock Manager implementation
Where to put the Server GUI
Server database file location
Implementing Lock/Unlock