JdbcTemplate — logging the dataSource connection url

Posted by Bernhard V on Stack Overflow See other posts from Stack Overflow or by Bernhard V
Published on 2010-05-28T06:12:50Z Indexed on 2010/05/28 6:22 UTC
Read the original article Hit count: 236

Filed under:
|
|
|
|

Hi,

is there a way to log the JdbcTemplate's DataSource connection URL in Java?

The field exists in the DataSource, but there ain't a getter to access it. Of course I could read the DataSource properties from the application context xml, but I'd like to do it the other way.

© Stack Overflow or respective owner

Related posts about java

Related posts about logging