Everything prefixed "dataSource." is put into a Properties and passed into the driver.
<Resource name="jdbc/OracleHikari" auth="Container"
factory="com.zaxxer.hikari.HikariJNDIFactory"
type="javax.sql.DataSource"
minimumIdle="5"
maximumPoolSize="10"
connectionTimeout="300000"
jdbcUrl="jdbc:oracle:thin:@orcl_server:1521:orcl"
dataSource.implicitCachingEnabled="true"
dataSource.user="user"
dataSource.password="pwd" />In this example, the "dataSource." will be striped from those properties, and the remaining key and value added to a Properties instance ... the equivalent of this:
Properties driverProperties = new Properties();
driverProperties.setProperty("implicitCachingEnable", "true");
driverProperties.setProperty("user", "true");
driverProperties.setProperty("password", "true");
And finally, whenever a connection is created then those properties are passed in...
driver.connect(jdbcUrl, driverProperties);