Package org.jboss.ejb3.proxy.factory.stateful

Examples of org.jboss.ejb3.proxy.factory.stateful.StatefulRemoteProxyFactory


         StatefulContainerInvocation newStatefulInvocation = buildNewInvocation(
                 info, statefulInvocation, initParameterTypes,
                 initParameterValues);

         StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
         factory.init();

         Object proxy = null;
         String businessInterfaceType = unadvisedMethod.getReturnType().getName();
         if (newStatefulInvocation.getId() != null)
            proxy = factory.createProxyEjb21(newStatefulInvocation.getId(), businessInterfaceType);
         else
            proxy = factory.createProxyEjb21(businessInterfaceType);

         InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
         if (newStatefulInvocation.getId() != null)
            response.addAttachment(StatefulConstants.NEW_ID,
                    newStatefulInvocation.getId());
View Full Code Here


      return factory.createProxyBusiness(id);
   }
  
   public Object createRemoteProxy(Object id, RemoteBinding binding) throws Exception
   {
      StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
      factory.init();

      if (id != null)
         return factory.createProxyBusiness(id,null);
      else
         return factory.createProxyBusiness();
   }
View Full Code Here

         {
            factory = new StatefulClusterProxyFactory(this, binding, clustered);
         }
         else
         {
            factory = new StatefulRemoteProxyFactory(this, binding);
         }
        
         try
         {
            factory.init();
View Full Code Here

      return factory.createProxyBusiness(id);
   }
  
   public Object createRemoteProxy(Object id, RemoteBinding binding) throws Exception
   {
      StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
      factory.init();

      if (id != null)
         return factory.createProxyBusiness(id,null);
      else
         return factory.createProxyBusiness();
   }
View Full Code Here

         StatefulContainerInvocation newStatefulInvocation = buildNewInvocation(
                 info, statefulInvocation, initParameterTypes,
                 initParameterValues);

         StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
         factory.init();

         Object proxy = null;
         String businessInterfaceType = unadvisedMethod.getReturnType().getName();
         if (newStatefulInvocation.getId() != null)
            proxy = factory.createProxyEjb21(newStatefulInvocation.getId(), businessInterfaceType);
         else
            proxy = factory.createProxyEjb21(businessInterfaceType);

         InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
         if (newStatefulInvocation.getId() != null)
            response.addAttachment(StatefulConstants.NEW_ID,
                    newStatefulInvocation.getId());
View Full Code Here

      return factory.createProxyBusiness(id);
   }
  
   public Object createRemoteProxy(Object id, RemoteBinding binding) throws Exception
   {
      StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
      factory.init();

      if (id != null)
         return factory.createProxyBusiness(id,null);
      else
         return factory.createProxyBusiness();
   }
View Full Code Here

      return factory.createProxyBusiness(id);
   }
  
   public Object createRemoteProxy(Object id, RemoteBinding binding) throws Exception
   {
      StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
      factory.init();

      if (id != null)
         return factory.createProxyBusiness(id,null);
      else
         return factory.createProxyBusiness();
   }
View Full Code Here

      {
         this.id = null;
      }
      else
      {
         SessionProxyInvocationHandler handler = (SessionProxyInvocationHandler) Proxy.getInvocationHandler(reference);
         id = (Serializable) handler.getTarget();
      }

      @Deprecated
      Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar();
View Full Code Here

      {
         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

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.proxy.factory.stateful.StatefulRemoteProxyFactory

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.