Cassandra integration in Fuse

Solution Verified - Updated -

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Issue

  • We need to use Cassandra DB in my solution. We would like to know which is the best way to work with Cassandra in Fuse. Can we use something like Hibernate OGM or Kundera for Cassandra ?

  • Which is the supported way for doing this ?

Resolution

  • Hibernate OGM is not supported in JBoss Fuse. Cassandra can be used instead.
  • The way to use cassandra in fuse is to deploy cassandra client in fuse and just use it with or without camel.
    We ship with a camel feature in Fuse 6.2.1, camel-cassandraql. We don't suggest to deploy cassandra embedded.
JBossFuse:karaf@root> features:info camel-cassandraql 
Description of camel-cassandraql 2.15.1.redhat-621084 feature
----------------------------------------------------------------
Feature has no configuration
Feature has no configuration files
Feature depends on:
  camel-core 2.15.1.redhat-621084
Feature contains followed bundles:
 mvn:com.google.guava/guava/16.0.1 start-level=50
 mvn:io.netty/netty/3.9.6.Final start-level=50
 mvn:io.dropwizard.metrics/metrics-core/3.1.1 start-level=50
 mvn:io.dropwizard.metrics/metrics-json/3.1.1 start-level=50
 mvn:com.fasterxml.jackson.core/jackson-core/2.4.3 start-level=50
 mvn:com.fasterxml.jackson.core/jackson-databind/2.4.3 start-level=50
 mvn:com.fasterxml.jackson.core/jackson-annotations/2.4.3 start-level=50
 mvn:com.datastax.cassandra/cassandra-driver-core/2.1.5 start-level=50
 mvn:org.apache.camel/camel-cassandraql/2.15.1.redhat-621084 start-level=50
Feature has no conditionals.
  • This feature definition already defines the dependencies on cassandra libraries.
    So, from a development perspective, using camel-cassandra, http://camel.apache.org/cassandra.html is probably the quickest way.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments