This content has been marked as final.
Show 2 replies
-
1. Re: How to access EntityManager in a Thread run() method?
wolfc Oct 3, 2008 2:59 AM (in response to jboss_raikankas)Fixed in rev 61993 (so it's in AS 5 Beta 2). I suggest using AS 5.0 CR2.
PS. You shouldn't access an EJBs EM in another thread. The transaction isn't propagated, so you'll probably run into interesting problems. -
2. Re: How to access EntityManager in a Thread run() method?
jboss_raikankas Oct 3, 2008 6:01 AM (in response to jboss_raikankas)I read in EJB3 specs that this should not be done, but then... should I use a plain jdbc connection to handle databases querys & inserts inside the Thread?
Thanks.