For given Connection instance how do I find out url that the Connection uses to connect the database ? Is it somewhere in Properties returned by Co
Connection
Properties
I believe you can use the DatabaseMetaData object from the Connection and then get the URL. Try:
DatabaseMetaData dmd = connection.getMetaData(); String url = dmd.getURL();