This content has been marked as final.
Show 4 replies
-
1. Re: Startup and Shutdown class
jaikiran Jun 11, 2013 11:37 PM (in response to howardl815)How are you checking that the @PreDestroy gets called? Undeploying the bean/deployment should trigger the @PreDestroy. Post the relevant code.
-
2. Re: Startup and Shutdown class
howardl815 Jun 12, 2013 1:37 PM (in response to jaikiran)I'm simply printing out some message. I'm using 7.1.1. Thank you very much for any help.
@Startup
@Singleton
public class StartupShutdownTest {
@PostConstruct
void atStartup() {
System.out.println("STARTING UP!");
}
@PreDestroy
void atShutdown() {
System.out.println("SHUTTING DOWN!");
}
}
-
3. Re: Startup and Shutdown class
sfcoy Jun 13, 2013 5:34 AM (in response to howardl815)The attached test application works just fine for me in JBossAS 7.1.1.
-
predestroy-test.zip 13.0 KB
-
-
4. Re: Startup and Shutdown class
howardl815 Jun 14, 2013 12:41 PM (in response to sfcoy)Thanks Stephen.