[
https://issues.jboss.org/browse/JBTM-2352?page=com.atlassian.jira.plugin....
]
Michael Musgrove updated JBTM-2352:
-----------------------------------
Description:
I tried testing a new JDBC driver with the qa test suite. The test fail unless the XA
DataSource implements javax.sql.DataSource:
{code}
ccessors.DynamicDataSourceJDBCAccess@61d38439 : java.lang.ClassCastException:
com.impossibl.postgres.jdbc.xa.PGXADataSource cannot be cast to javax.sql.DataSource
2015-03-12 14:21:08,176 out: at
com.arjuna.ats.internal.arjuna.objectstore.jdbc.accessors.DynamicDataSourceJDBCAccess.initialise(DynamicDataSourceJDBCAccess.java:84)
2015-03-12 14:21:08,176 err: 2015-03-12 14:21:08.176 FINE POA RootPOA... done
2015-03-12 14:21:08,176 out: at
com.arjuna.ats.internal.arjuna.objectstore.jdbc.JDBCStore.<init>(JDBCStore.java:214)
{code}
In addition the jdbc testsuite only works with XADataSources that implement
javax.naming.Referenceable. As part of the fix we should investigate whether using
com/arjuna/ats/internal/jdbc/ProvidedXADataSourceConnection will remove this restriction.
was:
I tried testing a new JDBC driver with the qa test suite. The test fail unless the XA
DataSource implements javax.sql.transaction:
{code}
ccessors.DynamicDataSourceJDBCAccess@61d38439 : java.lang.ClassCastException:
com.impossibl.postgres.jdbc.xa.PGXADataSource cannot be cast to javax.sql.DataSource
2015-03-12 14:21:08,176 out: at
com.arjuna.ats.internal.arjuna.objectstore.jdbc.accessors.DynamicDataSourceJDBCAccess.initialise(DynamicDataSourceJDBCAccess.java:84)
2015-03-12 14:21:08,176 err: 2015-03-12 14:21:08.176 FINE POA RootPOA... done
2015-03-12 14:21:08,176 out: at
com.arjuna.ats.internal.arjuna.objectstore.jdbc.JDBCStore.<init>(JDBCStore.java:214)
{code}
In addition the jdbc testsuite only works with XADataSources that implement
javax.naming.Referenceable. As part of the fix we should investigate whether using
com/arjuna/ats/internal/jdbc/ProvidedXADataSourceConnection will remove this restriction.
JDBC test suite fails if an XA DataSource does not implement
javax.sql.DataSource
---------------------------------------------------------------------------------
Key: JBTM-2352
URL:
https://issues.jboss.org/browse/JBTM-2352
Project: JBoss Transaction Manager
Issue Type: Bug
Components: Testing
Affects Versions: 5.0.4
Reporter: Michael Musgrove
Assignee: Michael Musgrove
Fix For: 5.0.5
I tried testing a new JDBC driver with the qa test suite. The test fail unless the XA
DataSource implements javax.sql.DataSource:
{code}
ccessors.DynamicDataSourceJDBCAccess@61d38439 : java.lang.ClassCastException:
com.impossibl.postgres.jdbc.xa.PGXADataSource cannot be cast to javax.sql.DataSource
2015-03-12 14:21:08,176 out: at
com.arjuna.ats.internal.arjuna.objectstore.jdbc.accessors.DynamicDataSourceJDBCAccess.initialise(DynamicDataSourceJDBCAccess.java:84)
2015-03-12 14:21:08,176 err: 2015-03-12 14:21:08.176 FINE POA RootPOA... done
2015-03-12 14:21:08,176 out: at
com.arjuna.ats.internal.arjuna.objectstore.jdbc.JDBCStore.<init>(JDBCStore.java:214)
{code}
In addition the jdbc testsuite only works with XADataSources that implement
javax.naming.Referenceable. As part of the fix we should investigate whether using
com/arjuna/ats/internal/jdbc/ProvidedXADataSourceConnection will remove this restriction.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)