[
https://issues.jboss.org/browse/CDI-162?page=com.atlassian.jira.plugin.sy...
]
Mark Struberg commented on CDI-162:
-----------------------------------
@PersistenceContext and @PersistenceUnit are aways bound to the component (per the EJB
spec).
You can bind the EntityManager to a scope with a simple producer method. Currently
@RequestScoped is the only thing which makes sense atm imo (as the EM is not Serializable
as per the JPA spec) See CDI-121 for @TransactionScoped which would also be handy in the
future.
Support Extended Persistence Contexts in Managed beans
------------------------------------------------------
Key: CDI-162
URL:
https://issues.jboss.org/browse/CDI-162
Project: CDI Specification Issues
Issue Type: Tracker
Reporter: Pete Muir
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira