ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-16207) Provide Ability To Pass JPA / EclipseLink Properties to the DataSource
Date Tue, 03 May 2016 16:48:13 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-16207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15269045#comment-15269045
] 

Hudson commented on AMBARI-16207:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4781 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4781/])
AMBARI-16207 - Provide Ability To Pass JPA / EclipseLink Properties to (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=51c0cb4ff1d56704265014e890275dd6284bdb8c])
* ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
* ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java
* ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java


> Provide Ability To Pass JPA / EclipseLink Properties to the DataSource
> ----------------------------------------------------------------------
>
>                 Key: AMBARI-16207
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16207
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-16207.patch
>
>
> There is currently no way to pass JPA or EclipseLink specific connection/DataSource properties
in from {{ambari.properties}}. Although there exists {{Configuration.getDatabaseCustomProperties}},
these are actually _driver specific_ properties and not properties for EclipseLink.
> For example, if I wanted to pass in to the JDBC Driver {{foo=bar}}, then I could set
> {{server.jdbc.properties.foo=bar}} and this will get translated into {{eclipselink.jdbc.property.foo=bar}}.
> However, if I wanted to set any of the EclipseLink or JPA specific DataSource properties
(see http://www.eclipse.org/eclipselink/api/2.6/org/eclipse/persistence/config/PersistenceUnitProperties.html)
I would not be able to.
> Proposal is to add something similar to the custom driver properties:
> {code}
> server.persistence.properties.eclipselink.jdbc.batch-writing.size=25
> {code}
> Which could get translated into
> {code}
> properties.put("eclipselink.jdbc.batch-writing.size", 25)
> {code}



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

Mime
View raw message