0

My bean has a @PreDestroy annotated method which do some clean up. I want to destroy this bean at run time (in response to some ApplicationEvent) such that its preDestroy method is called.

Can any one please guide me?

Thanks

amique
  • 2,176
  • 7
  • 34
  • 53
  • http://stackoverflow.com/questions/16373276/predestroy-method-of-a-spring-singleton-bean-not-called – Koitoer Apr 15 '14 at 05:19
  • Here's a [similar questions with an answer](http://stackoverflow.com/questions/16667957/spring-destroy-bean-manually-instead-of-ctx-close). – Andrei Stefan Apr 15 '14 at 09:14

0 Answers0