 <p>if anybody else (like me) wants to try to get some jdbc information and you are using hibernate 4.x, you might try it that way:</p> <pre class="lang-java prettyprint-override"><code>import java.sql.Connection; import java.sql.SQLException; import org.hibernate.jdbc.Work; public class ConnectionInfo implements Work { public String dataBaseUrl; public String dataBaseProductName; public String driverName; @Override public void execute(Connection connection) throws SQLException { dataBaseUrl = connection.getMetaData().getURL(); dataBaseProductName = connection.getMetaData().getDatabaseProductName(); driverName = connection.getMetaData().getDriverName(); } public String getDataBaseProductName() { return dataBaseProductName; } public void setDataBaseProductName(String dataBaseProductName) { this.dataBaseProductName = dataBaseProductName; } public String getDataBaseUrl() { return dataBaseUrl; } public void setDataBaseUrl(String dataBaseUrl) { this.dataBaseUrl = dataBaseUrl; } public String getDriverName() { return driverName; } public void setDriverName(String driverName) { this.driverName = driverName; } } </code></pre> <p><strong>Now you can retrieve your information like that:</strong></p> <pre class="lang-java prettyprint-override"><code>// -- snip org.hibernate.ejb.EntityManagerImpl entityManagerImpl = (org.hibernate.ejb.EntityManagerImpl) genericDBAccess.getEntityManager().getDelegate(); Session session = entityManagerImpl.getSession(); connectionInfo = new ConnectionInfo(); session.doWork(connectionInfo); // -- snap </code></pre> <p>Hope that helps! I drove crazy finding this information....</p>