Package org.jboss.ejb3.session

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


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

   }

   public void stop() throws Exception
   {
      super.stop();
      SessionSpecContainer statelessContainer = this.getContainer();
      RemoteHome remoteHome = this.getContainer().getAnnotation(RemoteHome.class);
      if (remoteHome != null && !bindHomeAndEjb21ViewTogether(statelessContainer))
      {
         Util.unbind(getContainer().getInitialContext(), ProxyFactoryHelper.getHomeJndiName(getContainer()));
      }
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

         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

         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

   @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

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

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
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.