Created
October 23, 2012 02:07
-
-
Save jsanda/3936261 to your computer and use it in GitHub Desktop.
declare data source and driver for cassandra jdbc driver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<subsystem xmlns="urn:jboss:domain:datasources:1.0"> | |
<datasources> | |
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" | |
use-java-context="true"> | |
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url> | |
<driver>h2</driver> | |
<security> | |
<user-name>sa</user-name> | |
<password>sa</password> | |
</security> | |
</datasource> | |
<datasource jndi-name="java:jboss/datasources/CassandraDS" pool-name="CassandraDS" enabled="true" | |
use-java-context="true" use-ccm="false" jta="false"> | |
<connection-url>jdbc:cassandra://localhost:9160/system?version=3.0.0</connection-url> | |
<driver>cassandra</driver> | |
</datasource> | |
<drivers> | |
<driver name="h2" module="com.h2database.h2"> | |
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class> | |
</driver> | |
<driver name="cassandra" module="org.apache-extras.cassandra-jdbc"> | |
<datasource-class>org.apache.cassandra.cql.jdbc.CassandraDataSource</datasource-class> | |
</driver> | |
</drivers> | |
</datasources> | |
</subsystem> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment