org.jboss.ejb3.proxy.clustered.objectfactory.session
Class SessionClusteredProxyObjectFactory
java.lang.Object
org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory
org.jboss.ejb3.proxy.objectfactory.Ejb3RegistrarProxyObjectFactory
org.jboss.ejb3.proxy.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.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.factory.ProxyFactory |
createProxyFactoryProxy(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> refAddrs,
java.lang.String proxyFactoryRegistryKey)
Here we replace the superclass implementation to create a cluster aware
proxy that will load balance requests to the server-side proxy factory. |
protected java.lang.Object |
getProxy(org.jboss.ejb3.proxy.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.objectfactory.session.SessionProxyObjectFactory |
createProxy, getProxyFactoryClass, hasHome |
| Methods inherited from class org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory |
getObjectInstance, 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.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.objectfactory.ProxyObjectFactory
- Parameters:
proxyFactory - The ProxyFactory to usename - The JNDI name looked upreferenceAddresses -
createProxyFactoryProxy
protected org.jboss.ejb3.proxy.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
- Here we replace the superclass implementation to create a cluster aware
proxy that will load balance requests to the server-side proxy factory.
- Overrides:
createProxyFactoryProxy in class org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory
- Throws:
java.lang.Exception