troubleshooting Question

RMI: If a multithreaded client opens multiple connections on the server side?

Avatar of vi_sharma
vi_sharma asked on
9 Comments1 Solution434 ViewsLast Modified:
I have a RMI server, and one object is registered to it, which is single threaded.
If I have a multithreaded client, in which different threads call different methods on the Remote object using same stub.
I have two questions:

1. Whether all client threads' requests would be handled by the same remote object (please note that all threads use the same stub i.e. all threads use the stub written by one Naming.lookup(..) call)?
2. Would simultaneous client calls open multiple connections on the server side?

Mick Barry
Java Developer
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros