Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-185

Our @Transactional interceptor also tries to handle @PersistenceContexts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3-incubating
    • 0.3-incubating
    • JPA-Module
    • 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

          Activity

            People

              struberg Mark Struberg
              struberg Mark Struberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: