This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Problem

 
Ramesh Pramuditha Rathnayake
Ranch Hand
Posts: 178
2
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed a Server software and a Client software using java RMI.
Is there a way to determine whether a client machine has disconnected from the Server machine..??
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "disconnected"? That concept only means something when the design includes a connection, but normally RMI doesn't require or use one.
 
Ramesh Pramuditha Rathnayake
Ranch Hand
Posts: 178
2
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have send a factory class through server for the clients. Clients can get different objects from that factory and can work with them. If a client shut down the computer without exiting the software(therefore JVM is terminated), how can I recognize that a client has log out..??
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still don't understand the design. You mentioned a factory class, but then you started talking about a client logging out without explaining how the login/logout mechanism worked.
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh Pramuditha Rathnayake wrote:I have send a factory class through server for the clients. Clients can get different objects from that factory and can work with them. If a client shut down the computer without exiting the software(therefore JVM is terminated), how can I recognize that a client has log out..??

The explanation is really vague and lacks some details. Anyway, like everywhere in socket communication, you can't be sure if the client still exists until you try to send something to him and get the response back, no response - no client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic