tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Kildén <>
Subject ViewSscoped JSF bean & stateless that injects entityManager?
Date Thu, 20 Nov 2014 10:39:18 GMT

Using TomEE 1.7.1 with JSF 2.2 I have a problem. Basically I have a bean
with javax.faces.view.ViewScoped and a Stateless that injects
EntityManager. I use Eclipselink.

This is my producer:

public class EntityManagerProducer {

@PersistenceContext(unitName = APP_NAME)
private EntityManager entityManager;

protected EntityManager createEntityManager() {
return this.entityManager;

Passivation capable beans must satisfy passivation capable dependencies
happens pointing out my JSF bean. If I use  private transient EntityManager
em; it works but it feels strange.

Any ideas?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message