Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support jdbc interceptors configuration in DataSourceFactory #1960

Closed
ololoken opened this issue Mar 13, 2017 · 0 comments
Closed

Support jdbc interceptors configuration in DataSourceFactory #1960

ololoken opened this issue Mar 13, 2017 · 0 comments

Comments

@ololoken
Copy link

ololoken commented Mar 13, 2017

Now DataSourceFactory.build doesn't support PoolProperties.setJdbcInterceptors
So it's not very handy to configure/manage this option:

final ManagedDataSource dataSource = dbConfig.build(environment.metrics(), getName());
((ManagedPooledDataSource) dataSource).setJdbcInterceptors("org.apache.tomcat.jdbc.pool.interceptor.SlowQueryReport(threshold=200);");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant