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?


Reply With Quote