title: Get the connected mysql database name (JDBC)
body: <p>How can get the name of the database name from connection object</p>
  
  <pre><code>try {
      this.ds = (DataSource) new InitialContext().lookup("java:comp/env/jdbc/amger");
  } catch (NamingException ne) {
  }
  Connection conObj = ds.getConnection();
  </code></pre>
  
  <p>How do I get that Database name from con</p>