I looked around their site http://code.google.com/a/apache-extras.org/p/cassandra-jdbc/ but couldn’t find any documentation for configuring a data source bean such as
<spring:bean id="mySqlDataSource"
class="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource">
<spring:property name="url"
value="jdbc:mysql://${mysql.host}:${mysql.port}/${mysql.database}?user=${mysql.user}&password=${mysql.pwd}" />
</spring:bean>
Is there any documentation anywhere or does anyone know how to write one?
The CassandraDataSource doesn’t seem to have a default constructor, so you’ll need to pass everything in:
(I haven’t tested this, but it’s basically what you’d need to do).