Examples of SessionBeanEffigy


Examples of org.jboss.ejb3.effigy.SessionBeanEffigy

      pm.initialize(container);
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
      maxSize = config.maxSize();
      sessionTimeout = config.idleTimeoutSeconds();
      removalTimeout = config.removalTimeoutSeconds() * 1000;
      SessionBeanEffigy effigy = this.container.getEffigy();
      if(effigy != null)
      {
         StatefulTimeoutEffigy statefulTimeout = effigy.getStatefulTimeout();
         if(statefulTimeout != null)
         {
            removalTimeout = statefulTimeout.getUnit().toMillis(statefulTimeout.getTimeout());
            // the legacy meaning of 0 means no removal
            // EJB 3.1 FR 4.3.12 states however that the instance becomes immediately eligible for removal
View Full Code Here

Examples of org.jboss.ejb3.effigy.SessionBeanEffigy

      pm.initialize(container);
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
      maxSize = config.maxSize();
      sessionTimeout = config.idleTimeoutSeconds();
      removalTimeout = config.removalTimeoutSeconds() * 1000;
      SessionBeanEffigy effigy = this.container.getEffigy();
      if(effigy != null)
      {
         StatefulTimeoutEffigy statefulTimeout = effigy.getStatefulTimeout();
         if(statefulTimeout != null)
         {
            removalTimeout = statefulTimeout.getUnit().toMillis(statefulTimeout.getTimeout());
            // the legacy meaning of 0 means no removal
            // EJB 3.1 FR 4.3.12 states however that the instance becomes immediately eligible for removal
View Full Code Here

Examples of org.jboss.ejb3.effigy.SessionBeanEffigy

      return found;
   }

   private boolean hasCustomSessionSynchronizationMethods()
   {
      SessionBeanEffigy effigy = getEffigy();
      if(effigy.getAfterBeginMethod() != null)
         return true;
      if(effigy.getAfterCompletionMethod() != null)
         return true;
      if(effigy.getBeforeCompletionMethod() != null)
         return true;
      return false;
   }
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.