Commons Dbcp
  1. Commons Dbcp
  2. DBCP-382

Could not set flag "accessToUnderlyingConnectionAllowed" in "context.xml" for DriverAdapterCPDS/PerUserPoolDataSource

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.5.1, 2.0
    • Labels:
      None
    • Environment:

      Apache Tomcat 6.0.32 / DBCP 1.3

      Description

      Could not set flag "accessToUnderlyingConnectionAllowed" in context.xml for DriverAdapterCPDS/PerUserPoolDataSource because the property is not considered from the factory.
      A possible solution is to add following lines to class "DriverAdapterCPDS" on the end of method "getObjectInstance"

      ra = ref.get("accessToUnderlyingConnectionAllowed");
      if (ra != null && ra.getContent() != null) {
      	setAccessToUnderlyingConnectionAllowed(Boolean.valueOf(ra.getContent().toString()).booleanValue());
      }
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Rempfer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development