Re: Remote Observer
Niclas Hedhman <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Independent |
| Message-ID | <[email protected]> |
On Thursday 25 August 2005 02:45, McLain, Jesse wrote: > Can anyone tell me how to implement the Remote Observer pattern? What > I'm trying for is an RMI server that will serve as Observable, and RMI > client apps that will observe it. An example would be excellent. At first the task seems simple. The client observer class implements a RemoteObserver interface and exports a stub which it passes to the "server". However, this assumes that; 1. The notifier code in Observable catches Exceptions, and doesn't get freaked out over intermittent network problems. 2. The Observer can "loose" events during network problems. 3. The Observer is able to detect that its stub has been garbage collected, possibly due to network problems. And such subject is larger than I have energy to discuss here. There is a specification around Remote Events, being part of Jini which may contain discussions around this topic. Cheers Niclas =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html