(Why does someone choose BoneCP? Every question I have ever heard about this is related to BoneCP, resolved by switching the poster to another CP, and everything works. BoneCP is not even in version 1.0. The next big thing. It just hasn’t come yet .)
Tomcat comes with support for Apache commons-dbcp and its own Tomcat Tomcat pool: just configure the JNDI connection pool according to Tomcat docs and you will be disconnected.
Unfortunately, Tomcat does not currently support reloading a DataSource at runtime. You can change properties through JMX, but the changes are not affected. You can also close the pool, but you just get the indoor pool, which is then useless.
Writing the extension in Tomcat bugzilla is likely to be fine.
source share