I'm looking to set up Tomcat to use a JNDI pooled data source for a MySQL database. HikariCP seems to be the recommended choice recently (at least on StackOverflow).
The documentation helpfully lists the configuration (presumably for server.xml or context.xml) but divides into "Driver-based" and "DataSource-based". Couldn't find much more info about this - could anyone advise on how to make the choice?