OpenJPA
  1. OpenJPA
  2. OPENJPA-1354

Configuring DBCP connection pool with connection properties breaks when user/pasword is specifed and javax.* configuration is set to DBCP Driver

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta
    • Component/s: None
    • Labels:
      None

      Description

      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

        Activity

        Pinaki Poddar created issue -
        Hide
        Pinaki Poddar added a comment -

        Breaks only if initialization is multi-threaded

        Show
        Pinaki Poddar added a comment - Breaks only if initialization is multi-threaded
        Pinaki Poddar made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.0-M4 [ 12314149 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        23d 10h 13m 1 Pinaki Poddar 12/Nov/09 04:43
        Resolved Resolved Closed Closed
        117d 13h 48m 1 Donald Woods 09/Mar/10 18:31

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            Pinaki Poddar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development