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

jta-data-source / non-jta-data-source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • None

    Description

      I get the following:

      persistence.units:ear=rasp-sender.ear,unitName=e-akten-test -> java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: e-akten-test

      persistence.units:ear=rasp-sender.ear,unitName=e-akten -> java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: e-akten

      The EJB3 persistence spec section 6.2.1.5 states:

      "In Java EE environments, the jta-data-source and non-jta-data-source elements are used
      to specify the global JNDI name of the JTA and/or non-JTA data source to be used by the persistence
      provider. If neither is speci?ed, the deployer must specify a JTA data source at deployment or a JTA
      data source must be provided by the container, and a JTA EntityManagerFactory will be created to cor-
      respond to it."

      I'm counting on the last case – data source must be provided by container + entity manager.

      Hope this helps !

      Attachments

        Activity

          People

            arubinge@redhat.com Andrew Rubinger (Inactive)
            jpederse@redhat.com Jesper Pedersen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: