Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2046

org.jboss.as.jpa.processor.PersistenceProviderProcessor does not handle multiple persistence providers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • 7.0.2.Final
    • JPA / Hibernate
    • None

    Description

      When more then one persistence provider is found in an application an exception is thrown even if persistence.xml explicitly specifies the provider to be used:

                  // collect list of persistence providers packaged with the application
                  final List<String> providerNames = servicesAttachment.getServiceImplementations(PersistenceProvider.class.getName());
                  if (providerNames.size() > 1) {     // TODO: support more than one provider to be packaged, which requires
                      // knowing which adapter belongs with it.
                      throw MESSAGES.onlyOnePersistenceProviderAllowed(providerNames);
                  }
      
      

      The solution could be to attach the of persistence provider classes and integration adaptors classes to PersistenceProviderDeploymentHolder

      Attachments

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            hardy.ferentschik_jira Hardy Ferentschik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: