-
Notifications
You must be signed in to change notification settings - Fork 3k
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
HikariCP as JNDI Datasource #8
Comments
Configuration of JNDI is outside of the control of a pooling provider. Here is a link to the Tomcat JNDI configuration documentation. http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html#MySQL_DBCP_Example Specifically, the Context Configuration section is what you need. And this is the full documentation for Tomcat JNDI, specifically the Using Resources section may interest you. http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html |
The problem is that We had to write our own wrapper for the HikariDataSource which looks like this:
|
Checkout the
Then use HikariCP-1.3.4-SNAPSHOT.jar or 1.3.4-SNAPSHOT as a pom dependency. Let me know if it works. |
I have trying to test HikariCP as jndi datasource, but i cannot find the way to add it as jndi datasource in tomcat 7.
If it's possible can you provide the configuration or if not can you add this feature ?
The text was updated successfully, but these errors were encountered: