Thanks. What if it is a JSF Managed Bean? Wouldn't TC be responsible for
lifecycle mgmt?


Bill Barker-2 wrote:
> 
> It doesn't support it for JavaBeans.  Only for things like Servlets, 
> Filters, and Listeners.  Anyway, there is no way for Tomcat to know when
> to 
> call @PreDestroy on a Bean, since only the JVM keeps track of who is
> holding 
> a reference to it.
> 
> "gotobarry" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
>>
>> public class MyBean {
>>   @PostConstruct
>>    public void initialize() {
>>      //init code
>>    }
>>
>>    @PreDestroy
>>    public void shutdown() {
>>      //shutdown code
>>    |
>> }
>>
>> If so do you have an example?
>>
>> Cheers
>> Barry
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Does-Tomcat-6.0.x-support-Life-Cycle-Annotations--tp19022553p19022553.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-Tomcat-6.0.x-support-Life-Cycle-Annotations--tp19022553p19026212.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to