You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Harry Levinson <ak...@gmail.com> on 2008/11/04 19:18:40 UTC

Re: read context.xml Resource attributes

Found a solution that uses the Connection object:

String dataSource = "jdbc/whatever";
DatabaseMetaData dbMetaData;
Connection conn = connections.get(dataSource);

dbMetaData = conn.getMetaData();
String url = dbMetaData.getURL();

Thanks for your help Juha.