You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Pinaki Poddar (JIRA)" <ji...@apache.org> on 2009/10/19 20:41:59 UTC

[jira] Commented: (OPENJPA-1354) Configuring DBCP connection pool with connection properties breaks when user/pasword is specifed and javax.* configuration is set to DBCP Driver

    [ https://issues.apache.org/jira/browse/OPENJPA-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767446#action_12767446 ] 

Pinaki Poddar commented on OPENJPA-1354:
----------------------------------------

Breaks only if initialization is multi-threaded

> Configuring DBCP connection pool with connection properties breaks when user/pasword is specifed and javax.* configuration is set to DBCP Driver
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1354
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1354
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>
> Property combination on openjpa.* works
>    <property name="openjpa.ConnectionDriver" value="org.apache.commons.dbcp.BasicDataSource"/> 
>    <property name="openjpa.ConnectionProperties" value="DriverClassName=com.mysql.jdbc.Driver,Url=jdbc:mysql://localhost/test,Username=scott,Password=tiger,MaxActive=40"/>
> But mixing them as
>         <property name="javax.persistence.jdbc.driver" value="org.apache.commons.dbcp.BasicDataSource"/> 
>         <property name="openjpa.ConnectionProperties" value="DriverClassName=com.mysql.jdbc.Driver,Url=jdbc:mysql://localhost/test,Username=scott,Password=tiger,MaxActive=40"/>
> breaks because dbcp.BasicDataSource.getConnection(user, pwd) throws UnSupportedOperationException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.