Examples of JndiSessionRegistrarBase


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

         }

         Invocation invocation = invokeInit(statefulInvocation.getMetaData(), unadvisedMethod, sessionId, initParameterTypes, initParameterValues);
        
         // Get JNDI Registrar
         JndiSessionRegistrarBase sfsbJndiRegistrar = this.getJndiRegistrar();

         // Determine if local/remote
         boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());

         // Get the metadata
         JBossSessionBeanMetaData smd = this.getMetaData();

         // Get the appropriate JNDI Name
         String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();

         // Find the Proxy Factory Key for this SFSB
         String proxyFactoryKey = sfsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);

         // Lookup the Proxy Factory in the Object Store
         StatefulSessionProxyFactory proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
               StatefulSessionProxyFactory.class);
View Full Code Here

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

         else
         {
            StatefulContainerInvocation newStatefulInvocation = buildInvocation(info, statefulInvocation);
  
            // Get JNDI Registrar
            JndiSessionRegistrarBase sfsbJndiRegistrar = this.getJndiRegistrar();
  
            // Determine if local/remote
            boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());
  
            // Get the metadata
            JBossSessionBeanMetaData smd = this.getMetaData();
  
            // Get the appropriate JNDI Name
            String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();
  
            // Find the Proxy Factory Key for this SFSB
            String proxyFactoryKey = sfsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);
  
            // Lookup the Proxy Factory in the Object Store
            StatefulSessionProxyFactory proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
                  StatefulSessionProxyFactory.class);
  
View Full Code Here

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

            proxy = CurrentRemoteProxyFactory.get(EJB2RemoteProxyFactory.class).create(null);
         }
         else
         {
            // Get JNDI Registrar
            JndiSessionRegistrarBase slsbJndiRegistrar = this.getJndiRegistrar();
  
            // Determine if local/remote
            boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());
           
            // Get the metadata
            JBossSessionBeanMetaData smd = this.getMetaData();
  
            // Get the appropriate JNDI Name
            String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();
  
            // Find the Proxy Factory Key for this SLSB
            String proxyFactoryKey = slsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);
  
            // Lookup the Proxy Factory in the Object Store
            StatelessSessionProxyFactoryBase proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
                  StatelessSessionProxyFactoryBase.class);
  
View Full Code Here

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

   {
      super.lockedStart();
      this.registerWithAopDispatcher();

      // Obtain registrar
      JndiSessionRegistrarBase registrar = this.getJndiRegistrar();

      // Bind all appropriate references/factories to Global JNDI for Client access, if a JNDI Registrar is present
      if (registrar != null)
      {
         String guid = Ejb3Registry.guid(this);
         registrar.bindEjb(this.getInitialContext(), this.getMetaData(), this.getClassloader(), this.getObjectName()
               .getCanonicalName(), guid, this.getAdvisor());
      }
      else
      {
         log.warn("No " + JndiSessionRegistrarBase.class.getSimpleName()
View Full Code Here

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

     
      // Deregister with Remoting
      Dispatcher.singleton.unregisterTarget(this.getName());

      // Unbind applicable JNDI Entries
      JndiSessionRegistrarBase jndiRegistrar = this.getJndiRegistrar();
      if (jndiRegistrar != null)
      {
         jndiRegistrar.unbindEjb(this.getInitialContext(), this.getMetaData());
      }
     
      super.lockedStop();
   }
View Full Code Here

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

         return null;

      }

      // Cast
      JndiSessionRegistrarBase jndiRegistrar = (JndiSessionRegistrarBase) obj;

      // Return
      return jndiRegistrar;
   }
View Full Code Here

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

         }

         Invocation invocation = invokeInit(statefulInvocation.getMetaData(), unadvisedMethod, sessionId, initParameterTypes, initParameterValues);
        
         // Get JNDI Registrar
         JndiSessionRegistrarBase sfsbJndiRegistrar = this.getJndiRegistrar();

         // Determine if local/remote
         boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());

         // Get the metadata
         JBossSessionBeanMetaData smd = this.getMetaData();

         // Get the appropriate JNDI Name
         String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();

         // Find the Proxy Factory Key for this SFSB
         String proxyFactoryKey = sfsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);

         // Lookup the Proxy Factory in the Object Store
         StatefulSessionProxyFactory proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
               StatefulSessionProxyFactory.class);
View Full Code Here

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

         else
         {
            StatefulContainerInvocation newStatefulInvocation = buildInvocation(info, statefulInvocation);
  
            // Get JNDI Registrar
            JndiSessionRegistrarBase sfsbJndiRegistrar = this.getJndiRegistrar();
  
            // Determine if local/remote
            boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());
  
            // Get the metadata
            JBossSessionBeanMetaData smd = this.getMetaData();
  
            // Get the appropriate JNDI Name
            String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();
  
            // Find the Proxy Factory Key for this SFSB
            String proxyFactoryKey = sfsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);
  
            // Lookup the Proxy Factory in the Object Store
            StatefulSessionProxyFactory proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
                  StatefulSessionProxyFactory.class);
  
View Full Code Here

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

            proxy = CurrentRemoteProxyFactory.get(EJB2RemoteProxyFactory.class).create(null);
         }
         else
         {
            // Get JNDI Registrar
            JndiSessionRegistrarBase slsbJndiRegistrar = this.getJndiRegistrar();
  
            // Determine if local/remote
            boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());
           
            // Get the metadata
            JBossSessionBeanMetaData smd = this.getMetaData();
  
            // Get the appropriate JNDI Name
            String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();
  
            // Find the Proxy Factory Key for this SLSB
            String proxyFactoryKey = slsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);
  
            // Lookup the Proxy Factory in the Object Store
            StatelessSessionProxyFactoryBase proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
                  StatelessSessionProxyFactoryBase.class);
  
View Full Code Here

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

            proxy = CurrentRemoteProxyFactory.get(EJB2RemoteProxyFactory.class).create(null);
         }
         else
         {
            // Get JNDI Registrar
            JndiSessionRegistrarBase slsbJndiRegistrar = this.getJndiRegistrar();
  
            // Determine if local/remote
            boolean isLocal = EJBLocalObject.class.isAssignableFrom(unadvisedMethod.getDeclaringClass());
           
            // Get the metadata
            JBossSessionBeanMetaData smd = this.getMetaData();
  
            // Get the appropriate JNDI Name
            String jndiName = isLocal ? smd.getLocalJndiName() : smd.getJndiName();
  
            // Find the Proxy Factory Key for this SLSB
            String proxyFactoryKey = slsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, isLocal);
  
            // Lookup the Proxy Factory in the Object Store
            StatelessSessionProxyFactoryBase proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
                  StatelessSessionProxyFactoryBase.class);
  
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.