Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-382

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.5.1, 2.0
    • None
    • 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());
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            srempfer Stefan Rempfer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: