This content has been marked as final.
Show 3 replies
-
1. Re: how I operate entityManager when web server context init
gonorrhea Apr 2, 2009 8:29 PM (in response to garyyding)be more specific and show code and stack trace (if any).
-
2. Re: how I operate entityManager when web server context init
stefanotravelli Apr 2, 2009 9:39 PM (in response to garyyding)I operate some actions on the database at startup with this code:
@Name("observeInitialization") public class Init { @In EntityManager entityManager; @Logger Log log; @Transactional @Observer("org.jboss.seam.postInitialization") public void observe() { // do something that need to be performed after application startup
-
3. Re: how I operate entityManager when web server context init
gonorrhea Apr 2, 2009 10:08 PM (in response to garyyding)You can also try @Create/@Startup Seam annotations...