This content has been marked as final.
Show 4 replies
-
1. Re: Application scoped POJO starts twice
earnest.dyke Jun 23, 2010 1:41 PM (in response to earnest.dyke)My apologies, forgot the specs. Seam 2.2.
Earnie!
-
2. Re: Application scoped POJO starts twice
earnest.dyke Jun 23, 2010 2:09 PM (in response to earnest.dyke)Adding @BypassInterceptors fixed the problem.
Earnie!
-
3. Re: Application scoped POJO starts twice
kapitanpetko Jun 23, 2010 10:27 PM (in response to earnest.dyke)
Earnie Dyke wrote on Jun 23, 2010 14:09:
Adding @BypassInterceptors fixed the problem.Thing is, it is not a 'problem'. The constructor being called twice does not necessarily mean you got two instances. Add a @Create method and do your logging there to check how many times the component is instantiated.
-
4. Re: Application scoped POJO starts twice
amitev Jun 24, 2010 3:56 AM (in response to earnest.dyke)And when using IoC the best way is to hook into a lifecycle event because nothing about constructors is guaranteed.