You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2012/06/07 14:18:22 UTC
[jira] [Resolved] (DELTASPIKE-185) Our @Transactional interceptor
also tries to handle @PersistenceContexts
[ https://issues.apache.org/jira/browse/DELTASPIKE-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved DELTASPIKE-185.
-----------------------------------------
Resolution: Fixed
> 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 @PersistenceContext. But this can lead to issues in an 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