This content has been marked as final.
Show 2 replies
-
1. Re: CDI how to startup bean?
haye Aug 8, 2011 3:35 PM (in response to viniciuscarvalho.viniciusccarvalho.gmail.com)@Startup is supported for @Singleton EJBs. Your bean should be annotated @ApplicationScoped @Singleton @Startup.
-
2. Re: CDI how to startup bean?
viniciuscarvalho.viniciusccarvalho.gmail.com Aug 9, 2011 5:29 AM (in response to viniciuscarvalho.viniciusccarvalho.gmail.com)Thanks, that worked. Still having problems with @Observes BeforeShutdown. I know it's supposed to work only on Extensions, but Weld 1.1.1.AS7 throws an exception, before calling the method, I believe it's related to the WELD-891 bug. Trying to overcome it with a @PreDestroy on my bean that would shutdown my camelcontext.
Regards