This content has been marked as final.
Show 4 replies
-
1. Re: EntityManager in @Asynchronous method
niox.nikospara.yahoo.com Mar 3, 2009 9:15 AM (in response to zeppelinux.dmitry.diligesoft.com)It is probably not running within a transaction. This is a web component, not an EJB, so in your asynchronous case transactions are probably not activated. Try adding @Transactional(TransactionPropagationType.REQUIRED) at your method.
-
2. Re: EntityManager in @Asynchronous method
zeppelinux.dmitry.diligesoft.com Mar 6, 2009 12:44 AM (in response to zeppelinux.dmitry.diligesoft.com)It did it, Thanks Nikos!
-
3. Re: EntityManager in @Asynchronous method
walidkarray Sep 3, 2010 7:03 AM (in response to zeppelinux.dmitry.diligesoft.com)That's help me ! Thanks :-)
-
4. Re: EntityManager in @Asynchronous method
sajohns4 Sep 7, 2010 2:43 PM (in response to zeppelinux.dmitry.diligesoft.com)Keep in mind EntityManager isn't thread safe...you should probably inject the factory and get the manager off that.