ds.setUser(null);
ds.setPassword(null);
ds = null;
// now with ConnectionPoolDataSource
EmbeddedConnectionPoolDataSource cpds = new EmbeddedConnectionPoolDataSource();
// ConnectionPoolDataSource - EMPTY
dsConnectionRequests(new String[] {
"XJ004","XJ004","XJ004","XJ004",
"XJ004","XJ004","XJ004","XJ004","XJ004"},
(ConnectionPoolDataSource)cpds);
// ConnectionPoolDataSource -
// connectionAttributes=databaseName=wombat
cpds.setConnectionAttributes("databaseName=" + dbName);
dsConnectionRequests(new String[] {
"XJ004","XJ004","XJ004","XJ004",
"XJ004","XJ004","XJ004","XJ004","XJ004"},
(ConnectionPoolDataSource)cpds);
cpds.setConnectionAttributes(null);
// ConnectionPoolDataSource - attributesAsPassword=true
cpds.setAttributesAsPassword(true);
dsConnectionRequests(new String[] {
"XJ004","XJ004","XJ004","XJ028",
"XJ028","XJ004","XJ004","XJ004","XJ004"},
(ConnectionPoolDataSource)cpds);
cpds.setAttributesAsPassword(false);
// ensure the DS property password is not treated as a set of
// attributes.
// ConnectionPoolDataSource - attributesAsPassword=true,
// user=fred, password=databaseName=wombat;password=wilma");
cpds.setAttributesAsPassword(true);
cpds.setUser("fred");
cpds.setPassword("databaseName=" + dbName + ";password=wilma");
dsConnectionRequests(new String[] {
"XJ004","XJ004","XJ004","XJ028",
"XJ028","XJ004","XJ004","XJ004","XJ004"},
(ConnectionPoolDataSource)cpds);
cpds.setAttributesAsPassword(false);
cpds.setUser(null);
cpds.setPassword(null);
cpds = null;
// now with XADataSource
EmbeddedXADataSource xads = new EmbeddedXADataSource();
// XADataSource - EMPTY