This content has been marked as final.
Show 8 replies
-
1. Re: Entity Manager during @Startup
armita Mar 15, 2006 2:56 AM (in response to emsa)Yes I did it.
-
2. Re: Entity Manager during @Startup
emsa Mar 15, 2006 3:52 AM (in response to emsa)Hmm I just keep getting null in my:
@In EntityManager em;
-
3. Re: Entity Manager during @Startup
emsa Mar 15, 2006 4:04 AM (in response to emsa)I'm using "SeamExtendedManagedPersistencePhaseListener" that might have something to do with it(?)
-
4. Re: Entity Manager during @Startup
gavin.king Mar 16, 2006 12:25 AM (in response to emsa)Try using @PersistenceContext instead.
-
5. Re: Entity Manager during @Startup
emsa Mar 16, 2006 5:52 PM (in response to emsa)Tried @PersistenceContext but I'm still getting null. This is an APPLICATION component.
-
6. Re: Entity Manager during @Startup
gavin.king Mar 16, 2006 6:31 PM (in response to emsa)huh? this is in an EJB? How could it be null?
-
7. Re: Entity Manager during @Startup
emsa Mar 17, 2006 3:43 AM (in response to emsa)Ah sorry no just a plain JavaBean - I guess I better make it an EJB or add Intercept.ALWAYS?
-
8. Re: Entity Manager during @Startup
gavin.king Mar 17, 2006 10:01 AM (in response to emsa)Make it an EJB. I don't think you can use a Seam-managed PC during the startup cycle.