Package org.jboss.ejb3.proxy.spi.container

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


      {
         final AsyncLocalBusiness bean = (AsyncLocalBusiness) NAMING_CONTEXT.lookup(AsyncBean.class.getSimpleName()
               + JNDI_SUFFIX_LOCAL_BUSINESS);
         log.info(bean.toString());
         log.info(bean.getClass().toString());
         final SessionProxyInvocationHandlerBase handler = (SessionProxyInvocationHandlerBase) Proxy
               .getInvocationHandler(bean);
         log.info("INTERCEPTORS: " + Arrays.asList(handler.getInterceptors()).toString());

         final Future<Thread> invocation = bean.getThreadOfExecution();

         // Block and test
         final Thread beanThread = invocation.get(3, TimeUnit.SECONDS);
View Full Code Here


      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

      // 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

      }

      /*
       * 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

    * @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

      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

      // 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

    * @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

      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

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

      // Return
      return container;
   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.proxy.spi.container.InvokableContext

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.