An Enterprise Beanstalk is used to retrieve Enterprise JavaBean (EJB) client stubs. This class
implements Service Locator J2EE pattern and supports stateless and stateful session beans.
Enterprise beanstalks can be configured in synapse.properties file. Parameters of the JNDI
service to be looked up for EJBs should be provided with this configuration.
Beanstalks cache EJB client stubs to improve efficiency by omitting excessive JNDI
context creation and look ups. Cache timeout for both stateless and stateful session beans could
be configured independently.
Returns a client stub for the EJB with given class name, session id and jndi name. If the
stub is already available in cache, it is retrieved from there. Otherwise, a JNDI lookup
is performed with the given JNDI name.
className - Fully qualified name of the remote interface of the session bean.
sessionId - Session id for stateful beans. null for stateless ones.
jndiName - JNDI name of the EJB. null could be used if the bean is already available in
Retrieved EJB client stub. null if the EJB is not found.