This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes invoking notifyAll() from an object in RMI Registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "invoking notifyAll() from an object in RMI Registry" Watch "invoking notifyAll() from an object in RMI Registry" New topic
Author

invoking notifyAll() from an object in RMI Registry

Rafael Z. Frantz
Greenhorn

Joined: Mar 09, 2010
Posts: 20
Hi all!

I have an object that implements a remote observer pattern. The observer is is exported to the RMI Registry (at JVM1) and is notified by an observable object from another RMI registry (JVM2). In the JVM1 this object, when notified, should invoke notifyAll() so other objects that are waiting but not exported to the JVM1' s registy can continuous running. I have this implemented but when the observer at JVM1 invokes notifyAll() the execution stops at this method call and objects do not wake up to continuous running...

Anybody knows what may be wrong here? any tips?

Regards,

Rafael.
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

I have no idea what you are trying to do. Perhaps a little code would help.

The Registry is only a repository for remote objects; no code resides therein.


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
Rafael Z. Frantz
Greenhorn

Joined: Mar 09, 2010
Posts: 20
Hi Edward,

I understand no code reside in registry. The problem is that I've invoked wait() on a lock of an object that is out of registry, but when I export this object to the registry and so it's stub is notified by a remote observable, the stub cannot call notifyAll() because it is just an stub for the obect that own the lock and it out of the registry.

Regards,

Rafael.
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

You're not making sense. I repeat my first reply:
I have no idea what you are trying to do. Perhaps a little code would help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invoking notifyAll() from an object in RMI Registry
 
Similar Threads
Weak references
JVM copies an object when it is exported to RMI registry?
wait() in web services
Is an object exported..??
How do I listen a client shutdown