tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50025] getConnection method in class DataSourceProxy is ignoring credentials
Date Fri, 22 Oct 2010 13:57:43 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50025

--- Comment #1 from bsnyder@apache.org 2010-10-22 09:57:37 EDT ---
Here's the description that I copy/pasted from the Spring forums: 

In Websphere I was able to wire an interceptor around all of my controllers and
set thread-bound DB credentials based on the path of the current request. In my
tcServer Developer edition (2.3.3 M1) this no longer works. My datasource is
wired as a

org.springframework.jdbc.datasource.UserCredential sDataSourceAdapter

I've verified that I'm calling the getConnection(String username, String
password) method with the correct credentials. However, the connection that is
returned is of type

ProxyConnection[PooledConnection[oracle.jdbc.driver.T4CConnection@6ab4a7]]

with the same default credentials as those defined in server.xml. Is there
another way to set the database credentials at runtime?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message