This content has been marked as final. 
    
Show                 1 reply
    
- 
        1. Re: Timer.cancel() leaves timer thread live and runningzboris Apr 27, 2005 1:14 AM (in response to zboris)To make sure that spawning of a new Timers and then cancelling them do not result in thread's pool growing in its size mark the cancelTimer method's transaction in ejb-jar.xml as NotSupported. i.e.: 
 <container-transaction>
 <ejb-name>MyEnterpriseBean</ejb-name>
 <method-name>*</method-name>
 <trans-attribute>Required</trans-attribute>
 </container-transaction>
 <container-transaction>
 <ejb-name>MyEnterpriseBean</ejb-name>
 <method-name>cancelTimer</method-name>
 <trans-attribute>NotSupported</trans-attribute>
 </container-transaction>
