tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Levinson" <aku...@gmail.com>
Subject Re: read context.xml Resource attributes
Date Tue, 04 Nov 2008 18:18:40 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message