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
connection.getClientInfo() has all the details related to connection. It returns a properties object. You can retrieve the value of "password" property to fetch the password that was used for the connection object.
Please let me know if this solves your problem.