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

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


      {
         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

      // Deploy Beans
      SfsbProxyEqualityTestCase.getBootstrap().deploy(SfsbProxyEqualityTestCase.class);

      // Create a SFSB Container
      StatefulContainer container = Utils.createSfsb(MyStatefulBean.class);
      log.info("Created SFSB Container: " + container.getName());
      SfsbProxyEqualityTestCase.setContainerName(container.getName());

      // Register Container w/ Remoting
      Dispatcher.singleton.registerTarget(container.getName(), container);

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

    */
   @Override
   protected StatefulSessionLocalProxyFactory createSessionLocalProxyFactory() throws Throwable
   {
      // Get the SFSB Container
      StatefulContainer sfsb = this.getContainer();

      // Make a Local Proxy Factory
      StatefulSessionLocalProxyFactory factory = new StatefulSessionLocalProxyFactory(
            StatefulSessionLocalProxyFactory.class.getName(), sfsb.getName(), sfsb.getName(), sfsb.getMetaData(), sfsb
                  .getClassLoader(), null);

      // Start
      factory.start();

View Full Code Here

    */
   @Override
   protected StatefulSessionRemoteProxyFactory createSessionRemoteProxyFactory() throws Throwable
   {
      // Get the SFSB Container
      StatefulContainer sfsb = this.getContainer();

      // Make a Remote Proxy Factory
      StatefulSessionRemoteProxyFactory factory = new StatefulSessionRemoteProxyFactory(
            StatefulSessionRemoteProxyFactory.class.getName(), sfsb.getName(), sfsb.getName(), sfsb.getMetaData(), sfsb
                  .getClassLoader(), "socket://localhost:3874", ProxyEqualityTestCaseBase.advisor, null);

      // Start
      factory.start();

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
      ProxyStatefulSessionLocalOnlyTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);

      // Create a SLSB
      StatefulContainer container = Utils.createSfsb(MyStatefulLocalOnlyBean.class);

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

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

   }
View Full Code Here

      // Deploy MC Beans
      ProxyStatefulSessionTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);

      // Create a SLSB
      StatefulContainer container = Utils.createSfsb(MyStatefulBean.class);

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

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

   }
View Full Code Here

      // Deploy MC Beans
      ProxyStatefulSession2xOnlyWithBindingsTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);

      // Create a SFSB
      StatefulContainer container = Utils.createSfsb(MyStateful2xOnlyWithBindingsBean.class);

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

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

   }
View Full Code Here

TOP

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

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.