This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: PreDestroy on Extension classswd847 Sep 1, 2010 10:39 PM (in response to cjalmeida)You are better off observing BeforeShutdown instead: void beforeShutdown(@Observes BeforeShutdown event, BeanManager manager) { ... }I don't that PreDestory is supposed to work on extensions, as they are not beans. For each service provider, the container must provide a bean of scope @ApplicationScoped and qualifier @Default, sup- porting injection of a reference to the service provider instance. So the extension itself is not a bean, but rather for every extension a bean is created that allows you access to it. 
- 
        2. Re: PreDestroy on Extension classcjalmeida Sep 2, 2010 7:37 AM (in response to cjalmeida)Fair enough. The seam-scheduling module in sandbox contains such error - it tries to use PreDestroy to shutdown Quartz. 
 
    