I should have bothered to look for a
shutdown() method. Thanks.
That seems to help, although there still seems to be some strange behavior sometimes, but it's Tomcat, not HikariCP. I shutdown the data sources from a servlet context listener and I print a message to the console when I do so. There are times when my shutdown messages appear in the console followed by the Tomcat "possible thread leak" messages, but usually just for Guice. That's expected. Other times, Tomcat will start printing out the "possible thread leak" messages before my shutdown messages appear. So it looks like sometimes Tomcat is doing things out of order, or maybe things are just written to the console out of order, which is possible.
Regardless, the messages have almost completely disappeared and I think any lingering quirks are Tomcat related and not HikariCP.
On a final note, would it be possible to expose the poolName property of the HikariDataSource? When I'm shutting down the data sources it would be nice to print the names of the pools along with it. Not a big deal though.
Thank you so much for your help!
-Ryan