public class HostWebAppConnectionProvider extends Object implements io.hypersistence.optimizer.webapp.WebAppConnectionProvider
WebAppConnectionProvider that borrows and releases its JDBC connections through the
host application's Hibernate connection provider. This is what lets the web app
reuse the exact same database credentials and connection pool as the application it is monitoring,
without any separate DataSource or JDBC URL configuration.| Constructor and Description |
|---|
HostWebAppConnectionProvider(org.hibernate.SessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
void |
releaseConnection(Connection connection) |
public HostWebAppConnectionProvider(org.hibernate.SessionFactory sessionFactory)
public Connection getConnection() throws SQLException
getConnection in interface io.hypersistence.optimizer.webapp.WebAppConnectionProviderSQLExceptionpublic void releaseConnection(Connection connection) throws SQLException
releaseConnection in interface io.hypersistence.optimizer.webapp.WebAppConnectionProviderSQLExceptionCopyright © 2026. All rights reserved.