Examples of InvokableContext


Examples of org.jboss.ejb3.proxy.container.InvokableContext

      // Create a POJI Proxy to the Container
      PojiProxy handler = new InvokableContextStatefulRemoteProxyInvocationHack(containerName, containerGuid, locator,
            interceptors, sessionId);
      Class<?>[] interfaces = new Class<?>[]
      {InvokableContext.class};
      InvokableContext container = (InvokableContext) Proxy.newProxyInstance(InvokableContext.class.getClassLoader(),
            interfaces, handler);

      // Return
      return container;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.container.InvokableContext

      // Create a POJI Proxy to the Container
      PojiProxy handler = new InvokableContextStatefulRemoteProxyInvocationHack(this.getContainerName(), this
            .getContainerGuid(), locator, interceptors, null);
      Class<?>[] interfaces = new Class<?>[]
      {InvokableContext.class};
      InvokableContext container = (InvokableContext) Proxy.newProxyInstance(InvokableContext.class.getClassLoader(),
            interfaces, handler);

      // Return
      return container;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

      final SerializableMethod invokedMethod = new SerializableMethod(method, actualClass);
     
      /*
       * Obtain the Container
       */
      final InvokableContext container = this.getContainer(invokedMethod.toMethod(), usedArgs);

      /*
       * Invoke
       */

      // Invoke
      final Object result = container.invoke(proxy, invokedMethod, usedArgs);

      // Return
      return result;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

      // Ensure of correct type
      assert obj instanceof InvokableContext : "Container retrieved from " + Ejb3Registrar.class.getSimpleName()
            + " was not of expected type " + InvokableContext.class.getName() + " but was instead " + obj;

      final InvokableContext container = (InvokableContext) obj;

      final InvokableContext proxyToContainer = (InvokableContext) Proxy.newProxyInstance(InvokableContext.class
            .getClassLoader(), new Class<?>[]
      {InvokableContext.class}, new LocalInvokableContextHandler(method, args, this.getTarget(), this.getInterceptors(),
            container));

      // Return
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

      }

      /*
       * Obtain the Container
       */
      final InvokableContext container = this.getContainer();

      /*
       * Invoke
       */

      // Adjust args if null to empty array
      Object[] usedArgs = args;
      if (usedArgs == null)
      {
         usedArgs = new Object[]
         {};
      }

      // Set the invoked method
      final SerializableMethod invokedMethod = new SerializableMethod(method, actualClass);

      // Invoke
      final Object result = container.invoke(proxy, invokedMethod, usedArgs);

      // Return
      return result;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

    * @return
    */
   //FIXME
   protected InvokableContext createRemoteProxyToContainer(String url)
   {
      InvokableContext container = ProxyRemotingUtils.createRemoteProxyToContainer(this.getContainerName(), this
            .getContainerGuid(), url, this.getInterceptors(), this.getTarget());
      return container;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

      final SerializableMethod invokedMethod = new SerializableMethod(method, actualClass);
     
      /*
       * Obtain the Container
       */
      final InvokableContext container = this.getContainer(invokedMethod.toMethod(), usedArgs);

      /*
       * Invoke
       */

      // Invoke
      final Object result = container.invoke(proxy, invokedMethod, usedArgs);

      // Return
      return result;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

      // Ensure of correct type
      assert obj instanceof InvokableContext : "Container retrieved from " + Ejb3Registrar.class.getSimpleName()
            + " was not of expected type " + InvokableContext.class.getName() + " but was instead " + obj;

      final InvokableContext container = (InvokableContext) obj;

      final InvokableContext proxyToContainer = (InvokableContext) Proxy.newProxyInstance(InvokableContext.class
            .getClassLoader(), new Class<?>[]
      {InvokableContext.class}, new LocalInvokableContextHandler(method, args, this.target, this.interceptors,
            container));

      // Return
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

    * @return
    */
   //FIXME
   protected InvokableContext createRemoteProxyToContainer(String url)
   {
      InvokableContext container = ProxyRemotingUtils.createRemoteProxyToContainer(this.getContainerName(),
            this.getContainerGuid(), url, this.getInterceptors(), this.getTarget());
      return container;
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.InvokableContext

      PojiProxy handler = new InvokableContextClusteredProxyInvocationHandler(this.getContainerName(), this
            .getContainerGuid(), locator, interceptors, (Serializable) this.getTarget(), this.getFamilyWrapper(), this
            .getLoadBalancePolicy(), this.getPartitionName(), true);
      Class<?>[] interfaces = new Class<?>[]
      {InvokableContext.class};
      InvokableContext container = (InvokableContext) Proxy.newProxyInstance(InvokableContext.class.getClassLoader(),
            interfaces, handler);

      // Return
      return container;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.