-
1. Re: Cascading injections - how do they work?
meetoblivion Jan 22, 2010 11:23 AM (in response to hirowla.ian.rowlands.three.com.au)if you're talking a regular managed bean, the lifecycle is:
- construction
- injection
- call to @postconstruct call back
.... stuff ....
- call to @predestroy call back
- destructionEJB is similar, except when the @Resources or @EJB would have been injected, @Inject's are also processed.
IIRC, constructor injection (e.g. public SomeClass(@Inject SomeBean someBean) { ... } ) is not supported yet, so you should probably use @PostConstruct to handle stuff that needs to happen after the bean comes to life.
-
2. Re: Cascading injections - how do they work?
pmuir Jan 26, 2010 3:23 PM (in response to hirowla.ian.rowlands.three.com.au)Provide the concrete code, there are so many variables in here the abstract case isn't really easy to answer :-)
-
3. Re: Cascading injections - how do they work?
hirowla.ian.rowlands.three.com.au Jan 27, 2010 1:14 AM (in response to hirowla.ian.rowlands.three.com.au)It's ok Pete - the initial advice worked (using @PostConstruct - I didn't know it even existed until then). The construction for things didn't work in the order that I expected, but it did what I needed it to do so I guess I can't complain!