activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Clasen (JIRA)" <>
Subject [jira] Commented: (AMQ-2826) Look at the possibility of incorporating a cassandra persistence adapter from
Date Wed, 21 Jul 2010 00:30:52 GMT


Scott Clasen commented on AMQ-2826:

Ok, so I was able to get the adapter to build and test under JDK 1.5 with a bunch of wrestling.
Not sure this is the way to go anyhow, since this would rely on an external cassandra instance
to do testing, and would also be generally more of a maintenence burden.

Here are the steps I needed to take.

Generate cassandra thrift java sources from the thrift idl, pull into project (could be an
external dependency, but need to compile with jdk1.5) Fix some blood where generated code
was attempting to assign an int instead of an Enum Type.

Pull BloomFilter and a few dependent sources from cassandra into project, remove serialization
code that ties it to cassandra too strongly. (Could use another bloomFilter impl or another
duplicate detection strategy)

remove two usages of String.getBytes(Charset) and new String(bytes, Charset) which were added
in 1.6 from Cascal (scala cassandra library used in the adapter), build cascal with jdk 1.5
(skipping tests, since the rely on an embedded cassandra instance)

install cassandra (actually worked with 0.6.3 even though the thrift api was 0.6.1), configure
broker keyspace, 

remove adapter test code that relied on embedded cassandra instance, build and test under
jdk 1.5

Sooo, while it is possible to get it working under 1.5, it dosen't feel very good from a future
maintainability and development perspective.


> Look at the possibility of incorporating a cassandra persistence adapter from

> -----------------------------------------------------------------------------------------------------------------
>                 Key: AMQ-2826
>                 URL:
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Message Store
>    Affects Versions: 5.3.2
>            Reporter: Scott Clasen
> I am the author of, which is a cassandra persistence
adapter for activemq. I am willing to donate it if it is something that is of interest to
> Only current trouble with that is it needs JDK 1.6, so it would probably need to wait
until (if and when) ActiveMQ 5.x is built with JDK 6.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message