-->
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.  [ 2 posts ] 
Author Message
 Post subject: Dependency Injection fails in Hibernate JPA
PostPosted: Mon Feb 25, 2008 6:14 am 
Newbie

Joined: Mon Feb 25, 2008 6:09 am
Posts: 1
When using Hibernate JPA I try to lookup the entity manager with the dependency injection


@PersistenceContext(name="SchedulerDB")
EntityManager em ;


But here the server logs print that dependency injection fails


Is there some configuration needed


Top
 Profile  
 
 Post subject: Re: Dependency Injection fails in Hibernate JPA
PostPosted: Mon Jun 14, 2010 12:12 pm 
Newbie

Joined: Thu Jun 10, 2010 2:10 pm
Posts: 1
i believe there are some setting which involve xml files:
- web.xml
- hibernate.cfg.xml
- WEB-INF/persistence.xml

now i'm looking for any example xml setting files
which not involve Spring, just only using:
- hibernate
- annotation
- entitymanager
- java persistence api (JPA)

please advice.


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

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.