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.
Harry Levinson wrote:
> What is the proper way to read attributes of a Resource in context.xml, for
> example the "url" attribute?
>
> I am building a test web page that shows whether or not we are successfully
> connected to the database. Only techies inide the company will be able to
> view that
What is the proper way to read attributes of a Resource in context.xml, for
example the "url" attribute?
I am building a test web page that shows whether or not we are successfully
connected to the database. Only techies inide the company will be able to
view that web page, so security is not an i