> "Advantages of Dynamic Code Loading
> One of the central and unique features of RMI is its ability to download
[quoted text clipped - 8 lines]
> this chapter uses RMI's capability to introduce new behavior to a
> distributed program."
These aspects do not prevent using RMI to lock a resource. The
paragraph you quote, in short, says: "If you have two virtual machines
and one has class file A and the other one doesn't the one that does
can share the class file with the one that doesn't". The paragraph
does not talk about instances of those classes. The paragraph is
orthogonal to topic.
Good luck,
Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/
dlugi - 03 Oct 2006 23:25 GMT
opalpa@gmail.com opalinski from opalpaweb napisał(a):
> These aspects do not prevent using RMI to lock a resource. The
> paragraph you quote, in short, says: "If you have two virtual machines
[quoted text clipped - 7 lines]
> opalpa@gmail.com
> http://www.geocities.com/opalpaweb/
Ok, you are right, I read this paragraph through. Thank you for your
advices.
RMI involves a massive overhead, but I need this mechanism to lock
records in my implementation of database management system, so I search
a little bit faster solution than RMI. I look for eguivalent of system
semaphore in operating systems .
dlugi - 03 Oct 2006 23:57 GMT
Another doubt is does RMI guarantee that the method of remote object can
be invoked only by one client??
Thnak you in advance
Nigel Wade - 04 Oct 2006 10:03 GMT
> Another doubt is does RMI guarantee that the method of remote object can
> be invoked only by one client??
RMI doesn't, no (the opposite, in fact).
But your implementation of the remote interface can impose whatever restrictions
and limitations on the clients it wishes.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555