Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

PLEASE HELP - How to simulate 'wait' and 'notify' in RMI environment

Thread view: 
cpptutor2000@yahoo.com - 07 Oct 2005 03:29 GMT
Could some Java guru help me? First of all, we know that 'wait',
'notify' and 'notifyAll' only work in the case the classes are being
executed on the same JVM. Consider now an RMI-based application. Let a
client and server objects be running on seperate physical machines,
i.e., JVMs. Now suppose the client makes a request to the server, which
can only be serviced if the server finds that some pre-defined global
predicate be true, and if not the server blocks replying to the client.
In case of the server and client objects running on the same JVM, this
is enforced using 'wait' etc., What would be the corresponding analog
in the distributed environment? Any help/suggestions would be greatly
appreciated.
Thanks in advance for your help.
E.J. Pitt - 08 Oct 2005 11:53 GMT
> Could some Java guru help me? First of all, we know that 'wait',
> 'notify' and 'notifyAll' only work in the case the classes are being
[quoted text clipped - 7 lines]
> in the distributed environment? Any help/suggestions would be greatly
> appreciated.

The analog in RMI is that the client blocks waiting for the server to
reply. You don't have to do anything to get this behaviour.
Roedy Green - 09 Oct 2005 05:41 GMT
>, What would be the corresponding analog
>in the distributed environment?

the pipe between the machines is a serialiser.  Only one object or
call at a time can go through it.  That makes it work something like
an event queue of work packets.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.