Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-791

Deployment fail on non JTA persistence unit

XMLWordPrintable

      <persistence-unit>
      <!-- no jta-datasource defined -->
      </persistence-unt>

      and

      <persistence-unit transaction-type="RESOURCE_LOCAL">
      <!-- no jta-datasource defined -->
      </persistence-unt>

      Seems to fail with
      WARN [ServiceController] Problem starting service persistence.units:ear=jblogApp.ear,jar=jblogBeans.jar,unitName=jblog
      java.lang.RuntimeException: You have not defined a jta-data-source for a JTA enabled persistence context named: jblog

      (2) should work
      (1) is very much expected from a usability POV. basically, if no jta-datasource is defined, we should expect a default transaction-type of RESOURCE_LOCAL

      Note that you might want to let the persistence provider test such compatibility issues, since it has more contextual information than the container (ie knows the meaning of the proprietary properties)

      Max can you confirm that my description match your bug.

        1. EJBTHREE-791.patch
          4 kB
        2. EJBTHREE-791.patch
          4 kB
        3. EJBTHREE-791.patch
          5 kB
        4. EJBTHREE-791.patch
          5 kB

            rhn-engineering-cdewolf Carlo de Wolf
            rhn-engineering-ebernard Emmanuel Bernard
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: