Examples of SessionSpecContainer


Examples of org.jboss.ejb3.session.SessionSpecContainer

    */
   protected abstract Class<?> getHomeType();
  
   protected String getJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String jndiName = md.determineResolvedJndiName(null);
      return jndiName;
   }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

      return jndiName;
   }

   protected String getHomeJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String home = md.getHome();
      String jndiName = md.determineResolvedJndiName(home);
      return jndiName;
   }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

         throw namingException;
      }
      assert !Dispatcher.singleton.isRegistered(targetId) : targetId + " is already registered";
      Dispatcher.singleton.registerTarget(targetId, this);

      SessionSpecContainer statefulContainer = this.getContainer();
      RemoteHome remoteHome = statefulContainer.getAnnotation(RemoteHome.class);
      if (remoteHome != null && !bindHomeAndBusinessTogether())
      {
         Object homeProxy = createHomeProxy(remoteHome.value());
         String homeJndiName = ProxyFactoryHelper.getHomeJndiName(statefulContainer);
         log.debug("Binding home proxy at " + homeJndiName);
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

   @Override
   public void start() throws Exception
   {
      super.start();
      SessionSpecContainer statelessContainer = getContainer();
      LocalHome localHome = statelessContainer.getAnnotation(LocalHome.class);
      if (localHome != null && !bindHomeAndBusinessTogether())
      {
         Class<?>[] interfaces =
         {localHome.value()};
         Object homeProxy = java.lang.reflect.Proxy.newProxyInstance(getContainer().getBeanClass().getClassLoader(),
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

   @Override
   public void stop() throws Exception
   {
      super.stop();
      SessionSpecContainer statelessContainer = this.getContainer();
      LocalHome localHome = statelessContainer.getAnnotation(LocalHome.class);
      if (localHome != null && !bindHomeAndBusinessTogether())
      {
         Util.unbind(getContainer().getInitialContext(), ProxyFactoryHelper.getLocalHomeJndiName(getContainer()));
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

   }
  
   @Override
   protected String getJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String jndiName = md.determineLocalJndiName();
      return jndiName;
   }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

       * SessionContainers use the @deprecated
       * dynamicInvoke(Object,Invocation)
       */
      if (container instanceof SessionSpecContainer)
      {
         SessionSpecContainer ssc = (SessionSpecContainer) container;
         response = ssc.dynamicInvoke(copy);
      }
      else
      {
         response = ((SessionContainer) container).dynamicInvoke(null, copy);
      }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

      final EJBContainer ejbContainer = EJBContainer.getEJBContainer(advisor);
      if (ejbContainer instanceof ServiceContainer || ejbContainer instanceof MessagingContainer)
      {
         return invocation.invokeNext();
      }
      final SessionSpecContainer sessionContainer = (SessionSpecContainer) EJBContainer.getEJBContainer(advisor);
      final AsyncInvocationMap currentInvocations = sessionContainer.getCurrentAsyncInvocations();

      // Put the current ID into the Map
      if (id != null)
      {
         currentInvocations.put(id, false);
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

      final EJBContainer ejbContainer = EJBContainer.getEJBContainer(advisor);
      if (ejbContainer instanceof ServiceContainer || ejbContainer instanceof MessagingContainer)
      {
         return invocation.invokeNext();
      }
      final SessionSpecContainer sessionContainer = (SessionSpecContainer) EJBContainer.getEJBContainer(advisor);
      final AsyncInvocationMap currentInvocations = sessionContainer.getCurrentAsyncInvocations();

      // Put the current ID into the Map
      if (id != null)
      {
         currentInvocations.put(id, false);
View Full Code Here

Examples of org.jboss.ejb3.session.SessionSpecContainer

       * SessionContainers use the @deprecated
       * dynamicInvoke(Object,Invocation)
       */
      if (container instanceof SessionSpecContainer)
      {
         SessionSpecContainer ssc = (SessionSpecContainer) container;
         response = ssc.dynamicInvoke(copy);
      }
      else
      {
         response = ((SessionContainer) container).dynamicInvoke(null, copy);
      }
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.