This content has been marked as final.
Show 2 replies
-
1. Re: Component annotated with @Startup is instantiated twice
kapitanpetko Mar 18, 2010 2:47 AM (in response to purecharger)Add a @Create method and move your log statement in there. Constructor called multiple times is not necessarily the same as multiple instances of a component.
-
2. Re: Component annotated with @Startup is instantiated twice
purecharger Mar 18, 2010 5:25 PM (in response to purecharger)
Nikolay Elenkov wrote on Mar 18, 2010 02:47:
Add a @Create method and move your log statement in there. Constructor called multiple times is not necessarily the same as multiple instances of a component.Thanks! I used @PostConstruct instead and got the desired result. However, I'd like to keep the annotated method protected, which is allowable according to the annotation documentation. Seam doesnt like this though, and is unable to invoke any method that does not have public access.