Examples in the connection-pool directory
The following table lists the files in the connection-pool directory. A README file in the directory contains setup information.
Demo program name | Description |
---|---|
AppSimulator.java | Simulates multiple client threads making DataSource connections |
SetupDB.java | Creates and populates a sample database. See the comments at the beginning of the code for a sample run command |
DS_Pool.prop | Lists properties for a connection-pooling application |
myCPDS.prop | Lists properties for a connection-pooling application, with the optional tuning parameters included |
DS_no_Pool.prop | Lists properties for an application without connection pooling |
Register.java | Registers a DataSource object with a
JNDI Name registry A sample run command is: java Register DS_no_Pool /tmp |
runDemo | (Shell script) Creates and populates a sample database; registers the data sources DS_no_Pool and DS_Pool; and runs an application to simulate multiple client threads that connect to the sample database |