-
1. Re: Order of operations
monkeyden Oct 31, 2006 5:10 PM (in response to monkeyden)and where do @Factory methods fit into this order?
-
2. Re: Order of operations
gavin.king Oct 31, 2006 5:21 PM (in response to monkeyden)Injection is DYNAMIC in Seam. Stuff you have heard like "after injection has occurred" is a non-sensible thing to talk about in Seam.
Injection happens many times, every time the component is invoked. -
3. Re: Order of operations
monkeyden Oct 31, 2006 5:30 PM (in response to monkeyden)I know it's dynamic, otherwise it would be pointless. Obviously injection can't happen before the method annotated with @Init. So if that's the casem can I rely on the EntityManager being injected IMMEDIATELY after the @Init method?
-
4. Re: Order of operations
gavin.king Oct 31, 2006 5:34 PM (in response to monkeyden)What is @Init?
-
5. Re: Order of operations
monkeyden Nov 1, 2006 12:05 AM (in response to monkeyden)It's an annotation which specifies the method of a bean class which corresponds with the create method of a SFSB.
-
6. Re: Order of operations
gavin.king Nov 1, 2006 3:26 AM (in response to monkeyden)There are no create methods in EJB3. This is EJB 2.x "client view" stuff. You should not be using that.
And why do you assume injection can't happen before the @Init method? Actually it does - it happens during @PostConstruct. -
7. Re: Order of operations
monkeyden Nov 1, 2006 9:32 AM (in response to monkeyden)There are no create methods in EJB3. This is EJB 2.x "client view" stuff. You should not be using that.
I chalk this up to cursory javadoc.And why do you assume injection can't happen before the @Init method? Actually it does - it happens during @PostConstruct.
Ignorance breeds assumptions, which is precisely why I use this forum.