[
https://issues.apache.org/jira/browse/DBCP-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz closed DBCP-382.
----------------------------
> Could not set flag "accessToUnderlyingConnectionAllowed" in "context.xml" for
> DriverAdapterCPDS/PerUserPoolDataSource
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: DBCP-382
> URL: https://issues.apache.org/jira/browse/DBCP-382
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: Apache Tomcat 6.0.32 / DBCP 1.3
> Reporter: Stefan Rempfer
> Fix For: 1.5.1, 2.0
>
>
> 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"
> {code}
> ra = ref.get("accessToUnderlyingConnectionAllowed");
> if (ra != null && ra.getContent() != null) {
>
> setAccessToUnderlyingConnectionAllowed(Boolean.valueOf(ra.getContent().toString()).booleanValue());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)