org.jboss.ejb3.proxy.clustered.objectfactory.session
Class SessionClusteredProxyObjectFactory

java.lang.Object
  extended by org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
      extended by org.jboss.ejb3.proxy.impl.objectfactory.Ejb3RegistrarProxyObjectFactory
          extended by org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory
              extended by org.jboss.ejb3.proxy.clustered.objectfactory.session.SessionClusteredProxyObjectFactory
All Implemented Interfaces:
Serializable, 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.

Version:
$Revision: $
Author:
Brian Stansberry
See Also:
Serialized Form

Constructor Summary
SessionClusteredProxyObjectFactory()
           
 
Method Summary
protected  org.jboss.ejb3.proxy.impl.factory.ProxyFactory createProxyFactoryProxy(Name name, Map<String,List<String>> refAddrs, 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  Object getProxy(org.jboss.ejb3.proxy.impl.factory.ProxyFactory proxyFactory, Name name, Map<String,List<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, 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
 

Constructor Detail

SessionClusteredProxyObjectFactory

public SessionClusteredProxyObjectFactory()
Method Detail

getProxy

protected Object getProxy(org.jboss.ejb3.proxy.impl.factory.ProxyFactory proxyFactory,
                          Name name,
                          Map<String,List<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 use
name - The JNDI name looked up
referenceAddresses -

createProxyFactoryProxy

protected org.jboss.ejb3.proxy.impl.factory.ProxyFactory createProxyFactoryProxy(Name name,
                                                                                 Map<String,List<String>> refAddrs,
                                                                                 String proxyFactoryRegistryKey)
                                                                          throws 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.impl.objectfactory.ProxyObjectFactory
Throws:
Exception


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.