How to configure an H2 XA datasource for JBoss

314 views
Skip to first unread message

Bill Bendrot (MobiusB@gmail.com)

unread,
Feb 22, 2010, 12:57:38 PM2/22/10
to H2 Database
Hi. How should the *-ds.xml be configured to use H2 as an XA
datasource with JBoss 5? Setting the xa-datasource-class to the
JdbcXAConnection class results in a "JBossResourceException: Could not
find Accessor on XADataSource" error. And if I just try specifying the
org.h2.Driver class, that results in a "Cannot cast driver to
java.sql.XADataSource.

Any help would be much appreciated.

Regards,
Bill

Thomas Mueller

unread,
Feb 25, 2010, 3:39:02 PM2/25/10
to h2-da...@googlegroups.com
Hi,

> Could not find Accessor on XADataSource

Did you try Google already? I found a few results with the above exception.

If not, could you post the complete error message with all stack
traces? Could you also post your complete configuration?

Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages