Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in fact,first problem is about RMI

 
Robin Lin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic