This content has been marked as final.
Show 2 replies
-
1. Re: Observe shutdown of a seam application
leonardinius Jun 17, 2008 12:35 PM (in response to heffner)Hi,
My proposed solution would be@Name("applicationLifecycle") @Startup @Scope(ScopeType.APPLICATION) public class ApplicationLifecycle { @Logger Log logger; public ApplicationLifecycle() { } @Create public void onCreate() { logger.info("applicationLifecycle started"); } @Observer("org.jboss.seam.preDestroyContext." + "APPLICATION") public void onDestroy() { } }
-
2. Re: Observe shutdown of a seam application
heffner Jun 17, 2008 1:54 PM (in response to heffner)Many thanks! I tried that approach before but made a mistake setting the Scope.