aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] [Resolved] (ARIES-1208) Forward all javax.persistence.jdbc.* properties to the DataSourceFactory
Date Thu, 12 Jun 2014 12:39:02 GMT


Christian Schneider resolved ARIES-1208.

    Resolution: Fixed

> Forward all javax.persistence.jdbc.* properties to the DataSourceFactory
> ------------------------------------------------------------------------
>                 Key: ARIES-1208
>                 URL:
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
> It is already possible to refer to a DataSource in persistence.xml by defining
> javax.persistence.jdbc.driver instead of a jndi DataSource.
> We implement this by looking for a DataSourceFactory service. 
> The problem is that we only foward three properties to the factory:
> url, user and password.
> So this is not usable for the derby DataSourceFactory provided by ops4j. This DataSource
requires a DatabaseName and does not work with url, user and password.
> So I would like to change the code in our DataSourceFactoryDataSource to accept a complete
Properties object. This object will be filled from the persistence unit by copying all properties
that start with javax.persistence.jdbc and remove this prefix. 
> So this will allow to do any configuration the DataSourceFactory requires. 
> I hope I am not misusing the javax.persistence.jdbc.* property namespace. So if this
is not a good idea please speak up.

This message was sent by Atlassian JIRA

View raw message