Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Object Relational Mapping and the fly likes CDI do not manage Entitymanager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "CDI do not manage Entitymanager " Watch "CDI do not manage Entitymanager " New topic

CDI do not manage Entitymanager

tehackio teha

Joined: Dec 08, 2011
Posts: 3
I'm using JSF2.0, CDI Weld, Tomcat 7.0.30, JPA(Hibernate).

This works on @Inject attributes on @named beans...

but this is never caller. Refresh page many times and connection remain open and timeout connection throws.
I agree. Here's the link:
subject: CDI do not manage Entitymanager
Similar Threads
How to inject EntityManager via setter in spring
EJB 3.1 Cookbook - where's CDI?
problem with find() in jpa
Convert JDBC Connection to EntityManager
Customizing EntityManager injection for multi-tenancy