Matej Novotny I am working on a small SE application using weld-se-core. I am using DeltaSpike's JPA module which defines an @TransactionScoped normal scope. This is the scope I am using to produce my entity manager. The producer looks like this:
@ApplicationScoped
|
public class EntityManagerProducer {
|
@Produces
|
@TransactionScoped
|
public EntityManager createEntityManager(EntityManagerFactory emf) {
|
return emf.createEntityManager();
|
}
|
}
|
You can replace the @TransactionScoped with @RequestScoped, it's the same story.
I will attach a project for reproduction.
|