-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Entity Manager.
PostPosted: Mon Sep 28, 2009 5:26 am 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.