Package org.jboss.ejb3.test.proxy.impl.common.container

Examples of org.jboss.ejb3.test.proxy.impl.common.container.StatelessContainer


      {
         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

     
      List<MetaDataBridge<ApplicationExceptionMetaData>> appExceptionBridges = new ArrayList<MetaDataBridge<ApplicationExceptionMetaData>>();
      appExceptionBridges.add(new ApplicationExceptionMetaDataBridge());
      this.metadataBasedAnnotationRepo.addComponentMetaDataLoaderFactory(new ApplicationExceptionComponentMetaDataLoaderFactory(appExceptionBridges));
     
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new RunAsMetaDataBridge());
      //Add a security domain bridge
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new SecurityDomainMetaDataBridge());
      // Ensure that an @Clustered annotation is visible to AOP if the XML says the bean is  clustered.
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new ClusteredMetaDataBridge());
   }
View Full Code Here

      appExceptionBridges.add(new ApplicationExceptionMetaDataBridge());
      this.metadataBasedAnnotationRepo.addComponentMetaDataLoaderFactory(new ApplicationExceptionComponentMetaDataLoaderFactory(appExceptionBridges));
     
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new RunAsMetaDataBridge());
      //Add a security domain bridge
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new SecurityDomainMetaDataBridge());
      // Ensure that an @Clustered annotation is visible to AOP if the XML says the bean is  clustered.
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new ClusteredMetaDataBridge());
   }
View Full Code Here

   {
      // Call Super
      ProxyEqualityTestCaseBase.beforeClass();

      // Create a SLSB Container
      StatelessContainer container = Utils.createSlsb(MyStatelessBean.class);
      log.info("Created SLSB Container: " + container.getName());
      SlsbProxyEqualityTestCase.setContainerName(container.getName());

      // Install into MC
      SlsbProxyEqualityTestCase.getBootstrap().installInstance(container.getName(), container);
   }
View Full Code Here

      // Throw Session EJB Support into MC
      bootstrap.deploy(SessionTestCaseBase.class);

      // Create the EJBs
      StatefulContainer sfsb = Utils.createSfsb(TestClientInterceptorStackStatefulBean.class);
      StatelessContainer slsb = Utils.createSlsb(TestClientInterceptorStackStatelessBean.class);

      // Add the containers for accessing later
      containers.add(sfsb);
      containers.add(slsb);
View Full Code Here

      // Deploy MC Beans
      ProxyStatelessSession2xOnlyExplicitJndiNameTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);

      // Create a SLSB
      StatelessContainer container = Utils.createSlsb(MyStateless2xOnlyBean.class);

      // Manually set the JNDI name (override to mock XML)

      /*
       * This is the test condition!
       */

      container.getMetaData().setHomeJndiName(OVERRIDE_JNDI_NAME_REMOTE);
      container.getMetaData().setJndiName(OVERRIDE_JNDI_NAME_REMOTE);
      container.getMetaData().setLocalHomeJndiName(OVERRIDE_JNDI_NAME_LOCAL);
      container.getMetaData().setLocalJndiName(OVERRIDE_JNDI_NAME_LOCAL);

      // Install
      Ejb3RegistrarLocator.locateRegistrar().bind(container.getName(), container);

      // Create JNDI Context
      context = new InitialContext(); // Props from CP jndi.properties
   }
View Full Code Here

      // Deploy MC Beans
      ProxyStatelessSession30OnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);

      // Create a SLSB
      StatelessContainer container = Utils.createSlsb(MyStateless30OnlyBean.class);

      // Install
      Ejb3RegistrarLocator.locateRegistrar().bind(container.getName(), container);

   }
View Full Code Here

      // Deploy MC Beans
      ProxyStatelessSession2xOnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);

      // Create a SLSB
      StatelessContainer container = Utils.createSlsb(MyStateless2xOnlyBean.class);

      // Install
      Ejb3RegistrarLocator.locateRegistrar().bind(container.getName(), container);

      // Create JNDI Context
      context = new InitialContext(); // Props from CP jndi.properties

   }
View Full Code Here

      // Deploy MC Beans
      ProxyStatelessSessionRemoteOnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);

      // Create a SLSB
      StatelessContainer container = Utils.createSlsb(MyStatelessRemoteOnlyBean.class);

      // Install
      Ejb3RegistrarLocator.locateRegistrar().bind(container.getName(), container);

   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.test.proxy.impl.common.container.StatelessContainer

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.