TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG-DEVEL:154] RMI give you multi-threading?
Quoting Perry Hoekstra (dutchman@uswest.net):
> Bob Tanner wrote:
>
> > I am struggling RMI and thread issues.
> >
> > Is a remote service via RMI automatically multi-threaded?
>
> No, I don't believe so. That was one of the value propositions of an EJB
> container was that the EJB container would handle the multi-threading for
> you.
I see a tendency on developer.java.sun.com forum, to move away from RMI to
EJB. I am reading an article in JavaPro about NOT doing multi-threads in EJB
containers. Sheesh. Time to read more in the forums.
> Both clients have reference to the same object? I have not used RMI much,
> is RMI inherently thread-safe? Or do you have to specify synchronized to
> protect methods against multi-client access
Hmm, have to look at the source code (should have thought of that sooner). I
do not know if RMI is thread-safe. At least I have a new approach to looking
for my answers.
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9