Skip to content

Instantly share code, notes, and snippets.

@maeste
Created May 23, 2011 13:16
Show Gist options
  • Select an option

  • Save maeste/986674 to your computer and use it in GitHub Desktop.

Select an option

Save maeste/986674 to your computer and use it in GitHub Desktop.
diff --git a/build/src/main/resources/standalone/configuration/clustering-standalone.xml b/build/src/main/resources/standalone/configuration/clustering-standalone.xml
index ed6e85a..2e439a4 100644
--- a/build/src/main/resources/standalone/configuration/clustering-standalone.xml
+++ b/build/src/main/resources/standalone/configuration/clustering-standalone.xml
@@ -177,8 +177,7 @@
<datasources>
<datasource jndi-name="java:/H2DS" enabled="true" use-java-context="true" pool-name="H2DS">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
- <driver-class>org.h2.Driver</driver-class>
- <driver>org.h2.Driver#1.2</driver>
+ <driver>h2</driver>
<pool></pool>
<security>
<user-name>sa</user-name>
@@ -188,10 +187,12 @@
<timeout></timeout>
<statement></statement>
</datasource>
+ <drivers>
+ <driver name="h2" module="com.h2database.h2">
+ <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
+ </driver>
+ </drivers>
</datasources>
- <drivers>
- <driver module="com.h2database.h2"/>
- </drivers>
</subsystem>
<subsystem xmlns="urn:jboss:domain:resourceadapters:1.0">
<!-- <resource-adapters>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment