aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Ward (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1520) Supplying an external DataSource is not possible with the EntityManagerFactoryBuilder
Date Wed, 06 Apr 2016 13:46:25 GMT
Timothy Ward created ARIES-1520:
-----------------------------------

             Summary: Supplying an external DataSource is not possible with the EntityManagerFactoryBuilder
                 Key: ARIES-1520
                 URL: https://issues.apache.org/jira/browse/ARIES-1520
             Project: Aries
          Issue Type: Bug
          Components: JPA
    Affects Versions: jpa-2.3.0
            Reporter: Timothy Ward
            Assignee: Timothy Ward
             Fix For: jpa-2.4.0


The Aries JPA container provides an EntityManagerFactoryBuilder service so that clients can
provide persistence unit configuration at runtime. 

One of the things that clients are supposed to be able to do is to provide ready configured
database connections at runtime using the javax.persistence.jtaDataSource and javax.persistence.nonJtaDataSource
properties.

This works for EclipseLink (the JPA RI) but does not with Hibernate or OpenJPA. Both Hibernate
and OpenJPA see the PersistenceUnitInfo return null and then fail when they find no Driver
class name. The EntityManagerFactoryBuilder can fix this by overriding the PersistenceUnitInfo's
DataSource using the supplied standard property names.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message