Skip to content

Commit

Permalink
SWARM-1215 - use appropriate configuration for XA datasource. (thornt…
Browse files Browse the repository at this point in the history
…ail#427)

Motivation
----------

We aren't actually configuring XA datasource driver class
names right.

Modifications
-------------

Use the appropriate method to configure them.

Result
------

Should now work.
  • Loading branch information
bobmcwhirter authored Mar 17, 2017
1 parent fdb61b4 commit ecc87d7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public DB2DriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("com.ibm.db2.jdbc.DB2XADataSource");
driver.driverXaDatasourceClassName("com.ibm.db2.jdbc.DB2XADataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public EnterpriseDBDriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("com.edb.xa.PGXADataSource");
driver.driverXaDatasourceClassName("com.edb.xa.PGXADataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public H2DriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("org.h2.jdbcx.JdbcDataSource");
driver.driverXaDatasourceClassName("org.h2.jdbcx.JdbcDataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public MySQLDriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("com.mysql.jdbc.jdbc2.optional.MysqlXADataSource");
driver.driverXaDatasourceClassName("com.mysql.jdbc.jdbc2.optional.MysqlXADataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public OracleDriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("oracle.jdbc.xa.client.OracleXADataSource");
driver.driverXaDatasourceClassName("oracle.jdbc.xa.client.OracleXADataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public PostgreSQLDriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("org.postgresql.xa.PGXADataSource");
driver.driverXaDatasourceClassName("org.postgresql.xa.PGXADataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public SQLServerDriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("com.microsoft.sqlserver.jdbc.SQLServerXADataSource");
driver.driverXaDatasourceClassName("com.microsoft.sqlserver.jdbc.SQLServerXADataSource");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public SybaseDriverInfo() {

@Override
protected void configureDriver(JDBCDriver driver) {
driver.xaDatasourceClass("com.sybase.jdbc4.jdbc.SybXADataSource");
driver.driverXaDatasourceClassName("com.sybase.jdbc4.jdbc.SybXADataSource");
}

@Override
Expand Down

0 comments on commit ecc87d7

Please sign in to comment.