[jboss-jira] [JBoss JIRA] (AS7-2046) org.jboss.as.jpa.processor.PersistenceProviderProcessor does not handle multiple persistence providers

Hardy Ferentschik (Created) (JIRA) jira-events at lists.jboss.org
Fri Oct 7 10:56:16 EDT 2011


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

                 Key: AS7-2046
                 URL: https://issues.jboss.org/browse/AS7-2046
             Project: Application Server 7
          Issue Type: Bug
          Components: JPA / Hibernate
    Affects Versions: 7.0.2.Final
            Reporter: Hardy Ferentschik
            Assignee: Scott Marlow


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:

{code}
            // 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);
            }

{code}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list