[cdi-dev] [JBoss JIRA] Commented: (CDI-162) Support Extended Persistence Contexts in Managed beans
Mark Struberg (JIRA)
jira-events at lists.jboss.org
Mon Sep 19 03:08:26 EDT 2011
[ https://issues.jboss.org/browse/CDI-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629063#comment-12629063 ]
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
More information about the cdi-dev
mailing list