You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2014/06/12 13:00:05 UTC

[jira] [Created] (ARIES-1208) Forward all javax.persistence.jdbc.* properties to the DataSourceFactory

Christian Schneider created ARIES-1208:
------------------------------------------

             Summary: Forward all javax.persistence.jdbc.* properties to the DataSourceFactory
                 Key: ARIES-1208
                 URL: https://issues.apache.org/jira/browse/ARIES-1208
             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
(v6.2#6252)