RMI Threads
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay_venkata
Posted On:   Friday, April 20, 2001 08:50 AM

Is a seperate thread created by the remote server for every remote method invocation? Is there any upper limit on the number of concurrent threads that can be supported by the remote object?

Re: RMI Threads

Posted By:   Edward_Harned  
Posted On:   Saturday, April 21, 2001 08:16 AM

#1. For most implementations, the RMI Runtime creates a thread to service each request from a Client. Once the request finishes, the thread waits for a brief period for the next Client request. In this way, the RMI-Connection may reuse threads. If no new request comes in, the RMI Runtime destroys the thread.



#2. Do not understand the question. As above, Client invocation of method = thread to process the request. Unless your code creates other threads there are no other threads.



Perhaps you mean "what is the maximum number of outstanding requests on a Server?" This is implementation dependent. See also the non-standard memory options, (-X...) available for starting the JVM.

About | Sitemap | Contact