[
https://issues.apache.org/jira/browse/DELTASPIKE-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Struberg updated DELTASPIKE-185:
-------------------------------------
Affects Version/s: (was: 0.2-incubating)
0.3-incubating
> Our @Transactional interceptor also tries to handle @PersistenceContexts
> -------------------------------------------------------------------------
>
> Key: DELTASPIKE-185
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-185
> Project: DeltaSpike
> Issue Type: Bug
> Components: JPA-Module
> Affects Versions: 0.3-incubating
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Our @Transactional interceptor also tries to handle @PersistenceContexts.
> But this will crash any EE server.
> A @PersistenceContext usually is bound to a JTA transaction and must not be
> controlled manually. Doing so will cause Exeptions. Thus we should remove
> this feature.
> This originally was intended for Java SE usage where a
> Persistence.createEntityManagerFactory().createEntityManager(); gets injected
> via e.g. OWBs simple resource plugin. A way to achieve the same would be to
> rewrite @PersistenceContext to corresponding @Inject with a Qualifier if
> needed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira