• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about client crash

 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder if there is sth. notify the server if the client failed.
thank you
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "sth"?
About client crashing. Look at the Unreferenced interface. Or if you want to be more daring Max has another solution. But you will have to ask him and also search the forum to see his posts on his solution. There is a great thread on comparing both solutions.
Mark
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say less daring, but there you go
M
 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't you think using Unerefernced easier than creating a client name and check everytime if he disconnect...
What do you think???
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The time is too long(29mins? I am not sure) for unreference to take action.
Regards
Damu
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu,
Do you have a requirement that you have to respond to dead clients in less than 29 minutes?
(By the way, you can reduce the time before unreferenced is called. See this JGuru FAQ for details. This can be useful for testing (I found it extremely useful) but I would recommend against requiring it for your final submission.)
In answer to Qusay's question, I found using unreferenced to be extremely easy.
Qusay, I dont understand what you are suggesting with "creating a client name and check everytime if he disconnect".
Are you suggesting having a separate thread monitoring whether the client is still connected? (which is what RMI does behind the scenes, and calls unreferenced when it determines that the client is no longer responding). I did try this, and it was also very simple, but I prefered to go with the standard unreferenced functionality rather than creating my "own implementation of that functionality" (as warned against in the instructions).
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew,

You are extremely helpful, thank you.
Regards,
Damu
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew,

You are extremely helpful, thank you.
Regards,
Damu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic