Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.3-incubating
-
None
Description
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.
Attachments
Issue Links
- is part of
-
DELTASPIKE-187 @PersistenceContext with @Transactional outside of application servers
- Closed