Switching drivers or changing the JNDI name
The data source JNDI name must be unique. In the above examples the JNDI name for driver 4 is set to the correct value. To switch drivers, modify the parameters so that the values are reversed, as follows:
Example 1: default values for the JNDI name:
#DB2Type4JndiName=jdbc/twsdb
...
#DB2Type2JndiName=jdbc/twsdb2
Example 2: switched values for the JNDI name:
#DB2Type4JndiName=jdbc/twsdb2
...
#DB2Type2JndiName=jdbc/twsdb
To change the driver names to a different value, see the following:
Example 3: different values for the JNDI name:
#DB2Type4JndiName=jdbc/twsdb_test4
...
#DB2Type2JndiName=jdbc/twsdb_test2