I'm trying to get User and URL from DataSource in java without being connect to database but I cant figured out how to do that.
I'm using the JdbcTemplate and the only option I see to do that is with the code:
jdbcTemplate.getDataSource().getConnection().getMetaData().getURL();
jdbcTemplate.getDataSource().getConnection().getMetaData().getUserName();
But, I recivied the error when I try to ".getConnection()":
javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:DataSource
There is another way?