Joined: Tue Jul 21, 2009 11:10 am Posts: 4
|
Hi,
We are using Hibernate Entity Manager with Seam Framework. Our Application has an Background process (Thread) which starts when the jboss server is started. When i try to instantiate EntityManager using @PersistenceContext inside the thread it gives entity Manager as null and the same i try inside an stateless session Bean it works fine. I am not sure why the @PersistenceContext is not getting intialized in our thread which is running in JBOSS. Is there some limitation for using @PersistenceContext.
Thanks in advance.
|
|