1 Reply Latest reply on Sep 3, 2009 7:34 PM by Peter Johnson

    configure thread passivation

    Sascha Janz Master

      i use a seam app with jboss 4.2.3 GA default.

      i got some trouble with my SFSB and thread passivation.

      how can i configure time of passivation?

        • 1. Re: configure thread passivation
          Peter Johnson Master

          You can add this entry to your META-INF/jboss.xml config file. The max-bean-age is in seconds (example sets it to 10 minutes):

          <container-cache-conf>
           <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
           <cache-policy-conf>
           <max-bean-age>600</max-bean-age>
           . . .
           </cache-policy-conf>
          </container-cache-conf>