[
https://issues.apache.org/jira/browse/OPENEJB-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446701#comment-13446701
]
Enrico Olivelli commented on OPENEJB-731:
-----------------------------------------
Attaching a simple implementation of this validation.
I had to look for @PersistenceContext references with reflection because
AnnotationDeployer does not attach references to RESOURCE_LOCAL units to EJBs
> Validation: JTA EntityManager refers to RESOURCE_LOCAL persistence-unit
> -----------------------------------------------------------------------
>
> Key: OPENEJB-731
> URL: https://issues.apache.org/jira/browse/OPENEJB-731
> Project: OpenEJB
> Issue Type: Sub-task
> Components: deployment, ejb3 simplified
> Affects Versions: 3.0-beta-1
> Reporter: David Blevins
> Fix For: 3.1.x
>
> Attachments: openejb_371.diff, openejb_371_test.diff
>
>
> Validation: Attempted use of @PersistenceContext EntityManager refering to a
> persistence-unit with RESOURCE_LOCAL transaction-type
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira