• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

invoking notifyAll() from an object in RMI Registry

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rafael Z. Frantz
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 291
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

reply
    Bookmark Topic Watch Topic
  • New Topic