4 Replies Latest reply on Jun 14, 2013 12:41 PM by Howard Lee

    Startup and Shutdown class

    Howard Lee Newbie



      I've implemented @Startup (on @Singleton) bean with two methods, one is @PostConstruct and the other is @PreDestroy. @PostConstruct seems to get executed whenever the server comes up, but @PreDestroy doesn't. Also if I do CTRL-C, @PreDestroy doesn't seem to get called either. How do I get a call back on server shutdown? Thank you very much.