By default, the JDBC driver is set to intercept
all of the JDBC connections that the application makes.
To
enable or disable the driver for specific connections, use the include and exclude options.
You
can either specify the complete URL of the connection or control several
similar connections with a prefix.
While processing intercepts,
the details in the include section is considered
before applying the exclude section details. Warning: An empty <includes> section disables
the driver.
Here is an example to include a single connection
and exclude all of the other connections: <includes>
<include>jdbc:oracle:thin:@devhost:9080:database2</include>
</includes>
Here is an example to exclude all the DB2® and local Oracle connections
but include all the other connections: <excludes>
<exclude>jdbc:db2</exclude>
<exclude>jdbc:oracle:thin:@localhost</exclude>
</excludes>
|