Package org.jboss.ejb3.session

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


      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

      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

       * 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

    */
   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

      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

   // Functional Methods
  
   @Override
   protected boolean bindHomeAndBusinessTogether()
   {
      SessionSpecContainer container = this.getContainer();
      String homeJndiName = ProxyFactoryHelper.getHomeJndiName(container);
      String remoteBusinessJndiName = ProxyFactoryHelper.getRemoteBusinessJndiName(container);
      return homeJndiName.equals(remoteBusinessJndiName);
   }
View Full Code Here

   @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

   @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

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

TOP

Related Classes of org.jboss.ejb3.session.SessionSpecContainer

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.