EJB method Invocation Queuing

Method invocations to enterprise beans are only queued for remote clients making the method call. An example of a remote client is an Enterprise JavaBeans (EJB) client running in a separate Java virtual machine (JVM) (another address space) from the enterprise bean. In contrast, no queuing occurs if the EJB client, either a servlet or another enterprise bean, is installed in the same JVM on which the EJB method runs and on the same thread of execution as the EJB client.

Remote enterprise beans communicate by using the Remote Method Invocation over Internet Inter-ORB Protocol (RMI-IIOP). Method invocations initiated over RMI-IIOP are processed by a server-side object request broker (ORB). The thread pool acts as a queue for incoming requests. However, if a remote method request is issued and there are no more available threads in the thread pool, a new thread is created. After the method request completes the thread is destroyed. Therefore, when the ORB is used to process remote method requests, the EJB container is an open queue, due to the use of unbounded threads.

[AIX HP-UX Linux Solaris Windows] The following illustration depicts the two queuing options of enterprise beans.

[z/OS] The following illustration depicts the two queuing options of enterprise beans.

[AIX HP-UX Linux Solaris Windows] The following are two tips for queueing enterprise beans: See also Queuing network



Related tasks
[AIX HP-UX Linux Solaris Windows] [z/OS] Tuning the application serving environment
Related reference
[AIX HP-UX Linux Solaris Windows] Queuing network
Reference topic    

Terms of Use | Feedback

Last updated: Sep 20, 2010 11:08:29 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-mp&topic=rprf_ejbquetip
File name: rprf_ejbquetip.html