Examples in the hdr directory
The following table lists the files in the hdr directory. A README file in the directory contains setup information.
Demo program name | Description |
---|---|
SetupDB.java | Creates a sample database and table |
Register.java | Registers the DS_no_Pool and DS_Pool DataSource objects
with a JNDI Name registry. A sample run command is: java Register DS_no_Pool /tmp |
AppSimulator.java | Simulates High-Availability Data Replication redirection for pooled and nonpooled connections made with the DataSource.getConnection() method |
HdrSimpleConnect.java | Shows how to implement HDR redirection with the DriverManager.getConnection() method |