Package org.jboss.ejb3.proxy.impl.handler.session

Examples of org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandler


      {
         throw new RuntimeException("Cannot instantiate LoadBalancePolicy class " + policyClass);
      }
     
      // Create
      SessionProxyInvocationHandler handler = new StatelessClusteredProxyInvocationHandler(containerName, containerGuid,
            interceptors, businessInterfaceName, url, beanClusteringInfo.getFamilyWrapper(),
            lbp, beanClusteringInfo.getPartitionName());

      // Return
      return handler;
View Full Code Here


      {
         throw new RuntimeException("Cannot instantiate LoadBalancePolicy class " + policyClass);
      }
     
      // Create
      SessionProxyInvocationHandler handler = new StatefulClusteredProxyInvocationHandler(containerName, containerGuid,
            interceptors, businessInterfaceName, url, beanClusteringInfo.getFamilyWrapper(),
            lbp, beanClusteringInfo.getPartitionName());

      // Return
      return handler;
View Full Code Here

      // Precondition checks
      assert Proxy.isProxyClass(proxy.getClass()) : "Unexpected proxy, was expecting type " + Proxy.class.getName();
      InvocationHandler handler = Proxy.getInvocationHandler(proxy);
      assert handler instanceof SessionProxyInvocationHandler : InvocationHandler.class.getSimpleName()
            + " must be of type " + SessionProxyInvocationHandler.class.getName();
      SessionProxyInvocationHandler sHandler = (SessionProxyInvocationHandler) handler;

      // Get the Target (Session ID)
      Object sessionId = sHandler.getTarget();

      // Get the appropriate instance
      Object obj = this.getBeanInstance((Serializable) sessionId);

      // Invoke
View Full Code Here

      if (Proxy.isProxyClass(proxy.getClass()))
      {
         InvocationHandler handler = Proxy.getInvocationHandler(proxy);
         assert handler instanceof SessionProxyInvocationHandler : "Requires "
               + SessionProxyInvocationHandler.class.getName();
         SessionProxyInvocationHandler sHandler = (SessionProxyInvocationHandler) handler;
         sessionId = (Serializable) sHandler.getTarget();
      }

      //TODO Session ID if nointerface

      // Send along to the transition method
View Full Code Here

      {
         throw new RuntimeException("Cannot instantiate LoadBalancePolicy class " + policyClass);
      }
     
      // Create
      SessionProxyInvocationHandler handler = new StatefulClusteredProxyInvocationHandler(containerName, containerGuid,
            interceptors, businessInterfaceName, sessionId, url, beanClusteringInfo.getFamilyWrapper(), lbp,
            beanClusteringInfo.getPartitionName());

      // Return
      return handler;
View Full Code Here

      {
         throw new RuntimeException("Cannot instantiate LoadBalancePolicy class " + policyClass);
      }
     
      // Create
      SessionProxyInvocationHandler handler = new StatelessClusteredProxyInvocationHandler(containerName, containerGuid,
            interceptors, businessInterfaceName, url, beanClusteringInfo.getFamilyWrapper(),
            lbp, beanClusteringInfo.getPartitionName());

      // Return
      return handler;
View Full Code Here

      {
         throw new RuntimeException("Cannot instantiate LoadBalancePolicy class " + policyClass);
      }
     
      // Create
      SessionProxyInvocationHandler handler = new StatelessClusteredProxyInvocationHandler(containerName, containerGuid,
            interceptors, businessInterfaceName, url, beanClusteringInfo.getFamilyWrapper(),
            lbp, beanClusteringInfo.getPartitionName());

      // Return
      return handler;
View Full Code Here

      {
         throw new RuntimeException("Cannot instantiate LoadBalancePolicy class " + policyClass);
      }
     
      // Create
      SessionProxyInvocationHandler handler = new StatefulClusteredProxyInvocationHandler(containerName, containerGuid,
            interceptors, businessInterfaceName, url, beanClusteringInfo.getFamilyWrapper(),
            lbp, beanClusteringInfo.getPartitionName());

      // Return
      return handler;
View Full Code Here

      if (Proxy.isProxyClass(proxy.getClass()))
      {
         InvocationHandler handler = Proxy.getInvocationHandler(proxy);
         assert handler instanceof SessionProxyInvocationHandler : "Requires "
               + SessionProxyInvocationHandler.class.getName();
         SessionProxyInvocationHandler sHandler = (SessionProxyInvocationHandler) handler;
         sessionId = (Serializable) sHandler.getTarget();
      }

      //TODO Session ID if nointerface

      // Send along to the transition method
View Full Code Here

    */
   private Serializable getSessionId(MyStatefulLocal bean)
   {
      // Get our bean's Session ID
      InvocationHandler handler = Proxy.getInvocationHandler(bean);
      SessionProxyInvocationHandler sHandler = (SessionProxyInvocationHandler) handler;
      Serializable sessionId = (Serializable) sHandler.getTarget();
      return sessionId;
   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.