| Author |
Messaging a client on RMI
|
Hanna Habashy
Ranch Hand
Joined: Aug 20, 2003
Posts: 532
|
|
hi all I am new to RMI, and I appreciate any help. I have my server and client running. I want to notify clients with any errors that occurs on the server side. Like server restarted, or shuting down. How can I send message to all clients currently connection to this server? thanks
|
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
|
You would have to code it so each client registered with the server like a listener. Then the server could send them messages like events. This design means that each client has a Remote reference that gets the callback from the server for every event. Here's a more in-depth discussion on this topic.
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
 |
|
|
subject: Messaging a client on RMI
|
|
|