You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Timothy Ward (JIRA)" <ji...@apache.org> on 2016/04/06 16:25:25 UTC

[jira] [Resolved] (ARIES-1520) Supplying an external DataSource is not possible with the EntityManagerFactoryBuilder

     [ https://issues.apache.org/jira/browse/ARIES-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Ward resolved ARIES-1520.
---------------------------------
    Resolution: Fixed

Fixed via commit 1737986.

> 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)