I would strongly advise against any solution that makes a connection between the Java implementation and data sources, and adhere to the principles of separation of problems .
, - TCP (, HAProxy), Oracle Tomcat . , , HAProxy, , Tomcat, -.
, - .
, , - . , .
: , , Tomcat. , keep-live , . - , . , , .
FWIW, HAProxy MySQL. Oracle .