Examples of JndiStatelessSessionRegistrar


Examples of org.jboss.ejb3.proxy.impl.jndiregistrar.JndiStatelessSessionRegistrar

   private void testRemoteProxyFactoryBinding(JBossSessionBeanMetaData smd) throws Exception
   {
      // A bit of a hack. These are actually internal classes of proxy-impl,
      // but since the proxyfactory jndi name generation is part of these
      // classes, we hence have to rely on them.
      JndiStatelessSessionRegistrar jndiRegistrar = new JndiStatelessSessionRegistrar(
            StatelessSessionRemoteProxyFactory.class.getName());
      String remoteProxyFactoryJNDIName = jndiRegistrar.getProxyFactoryRegistryKey(smd.getJndiName(), smd, false);

      Assert.assertNotNull("Could not get remote proxyfactory jndi name from jndi registrar",
            remoteProxyFactoryJNDIName);

      Context ctx = new InitialContext();
View Full Code Here

Examples of org.jboss.ejb3.proxy.impl.jndiregistrar.JndiStatelessSessionRegistrar

            new DeploymentSummary());
      mdWithApplicationName2.getEnterpriseBeansMetaData().getEjbJarMetaData().getDeploymentSummary()
            .setDeploymentScopeBaseName("EAR2");

      // Create a registrar
      JndiStatelessSessionRegistrar reg = new JndiStatelessSessionRegistrar(StatelessSessionProxyObjectFactory.class
            .getName());

      // Get the target ProxyFactory Names
      String regNameWithApplicationName1 = reg.getProxyFactoryRegistryKey(commonJndiName, mdWithApplicationName1, true);
      String regNameWithApplicationName2 = reg.getProxyFactoryRegistryKey(commonJndiName, mdWithApplicationName2, true);
      String regNameWithoutApplicationName = reg.getProxyFactoryRegistryKey(commonJndiName, mdWithoutApplicationName,
            true);

      // Log
      log.info("regNameWithApplicationName1: " + regNameWithApplicationName1);
      log.info("regNameWithApplicationName2: " + regNameWithApplicationName2);
View Full Code Here

Examples of org.jboss.ejb3.proxy.impl.jndiregistrar.JndiStatelessSessionRegistrar

   private void testRemoteProxyFactoryBinding(JBossSessionBeanMetaData smd) throws Exception
   {
      // A bit of a hack. These are actually internal classes of proxy-impl,
      // but since the proxyfactory jndi name generation is part of these
      // classes, we hence have to rely on them.
      JndiStatelessSessionRegistrar jndiRegistrar = new JndiStatelessSessionRegistrar(
            StatelessSessionRemoteProxyFactory.class.getName());
      String remoteProxyFactoryJNDIName = jndiRegistrar.getProxyFactoryRegistryKey(smd.getJndiName(), smd, false);

      Assert.assertNotNull("Could not get remote proxyfactory jndi name from jndi registrar",
            remoteProxyFactoryJNDIName);

      Context ctx = new InitialContext();
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.