[jboss-user] [EJB 3.0] - Re: How to access EntityManager in a Thread run() method?

2008-10-03 Thread 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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180232#4180232 Reply to the post : http://www.

[jboss-user] [EJB 3.0] - How to access EntityManager in a Thread run() method?

2008-10-02 Thread jboss_raikankas
Hi, I have got an Enterprise project with an EJB3, I am starting a Thread in a @Stateless bean but when I try to use my EJB3 EntityManager I get below exception. How can I access from inside the Thread to my EntityManager? :01:35,812 ERROR [STDERR] Exception in thread "Thread-15" 20:01:35,812