I was thinking to:
public class EmProducer {
@PersistenceContext
private EntityManager em;
@Produces
public EntityManager em() {
return em;
}
}
// then to get it
BeanProvider.getContextualReference(EntityManager.class);
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/7/25 Chris Owens <[email protected]>
> Can you walk me through how to get my hands on the entity manager or emf so
> that I could expose it with deltaspike
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Shared-Persistence-Context-between-Spring-Beans-and-EJBs-tp4664343p4664356.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>