org.jboss.ejb3.proxy.clustered.objectfactory.session
Class SessionClusteredProxyObjectFactory
java.lang.Object
org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
org.jboss.ejb3.proxy.impl.objectfactory.Ejb3RegistrarProxyObjectFactory
org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory
org.jboss.ejb3.proxy.clustered.objectfactory.session.SessionClusteredProxyObjectFactory
- All Implemented Interfaces:
- java.io.Serializable, javax.naming.spi.ObjectFactory
- Direct Known Subclasses:
- StatefulSessionClusteredProxyObjectFactory, StatelessSessionClusteredProxyObjectFactory
public class SessionClusteredProxyObjectFactory
- extends org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory
A JNDI Object Factory responsible for parsing metadata obtained from
Reference Address information and returning the appropriate clustered
Session Proxy.
Extends the superclass by ensuring that any remote calls to a proxy factory
that are needed to create the Session Proxy are properly load balanced.
- See Also:
- Serialized Form
|
Method Summary |
protected org.jboss.ejb3.proxy.impl.factory.ProxyFactory |
createProxyFactoryProxy(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> refAddrs,
java.lang.String proxyFactoryRegistryKey)
Deprecated. |
protected java.lang.Object |
getProxy(org.jboss.ejb3.proxy.impl.factory.ProxyFactory proxyFactory,
javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
Clustered Session Bean Object Factories always create a new Proxy in order
to get the latest target list for the bean from the server. |
| Methods inherited from class org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory |
createProxy, getProxyFactoryClass, hasHome |
| Methods inherited from class org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory |
getObjectInstance, getProxyFactoryFromJNDI, getSingleReferenceAddressValue, getSingleRequiredReferenceAddressValue, hasBusiness, hasLocalBusiness, hasRemoteBusiness, redefineProxyInTcl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.spi.ObjectFactory |
getObjectInstance |
SessionClusteredProxyObjectFactory
public SessionClusteredProxyObjectFactory()
getProxy
protected java.lang.Object getProxy(org.jboss.ejb3.proxy.impl.factory.ProxyFactory proxyFactory,
javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
- Clustered Session Bean Object Factories always create a new Proxy in order
to get the latest target list for the bean from the server.
- Specified by:
getProxy in class org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
- Parameters:
proxyFactory - The ProxyFactory to usename - The JNDI name looked upreferenceAddresses -
createProxyFactoryProxy
@Deprecated
protected org.jboss.ejb3.proxy.impl.factory.ProxyFactory createProxyFactoryProxy(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> refAddrs,
java.lang.String proxyFactoryRegistryKey)
throws java.lang.Exception
- Deprecated.
- Here we replace the superclass implementation to create a cluster aware
proxy that will load balance requests to the server-side proxy factory.
Deprecated since https://jira.jboss.org/jira/browse/EJBTHREE-1884 - The
ProxyObjectFactory is no longer responsible for creating a proxy
to the ProxyFactory. Instead the ProxyObjectFactory will
lookup in the JNDI for the ProxyFactory using the
proxyFactoryRegistryKey. The responsibility of
binding the proxyfactory to jndi will rest with the JndiSessionRegistrarBase
- Overrides:
createProxyFactoryProxy in class org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
- Throws:
java.lang.Exception- See Also:
new {@link #getProxyFactoryFromJNDI(String, javax.naming.Context, java.util.Hashtable)
{@inheritDoc}