[
https://issues.apache.org/jira/browse/CAMEL-2939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14276982#comment-14276982
]
Robert Drysdale commented on CAMEL-2939:
----------------------------------------
There's a bug in this new component in CassandraProducer when you try to do a
select as an enricher.
There's no component yet for this in Jira (so hence logged bug here).
My route:
<route id="organisationCacheUpdater">
<from uri="quartz://orgRefresh?trigger.repeatInterval=60000"/>
<to
uri="cql:orgCassandra?hosts=localhost&port=9042&keyspace=foo&cql=select
* from organisations"/>
.. snip
</route>
The bug happens because getCqlParams is always called and the component always
try to prepare a statement even for just a simple query with no params.
I had to totally hack the route to get this to work:
Even setting body to [] (no params didn't work).
<route id="organisationCacheUpdater">
<from uri="quartz://orgRefresh?trigger.repeatInterval=60000"/>
<setBody>
<groovy>"0"</groovy>
</setBody>
<to
uri="cql:orgCassandra?hosts=localhost&port=9042&keyspace=foo&cql=select
* from organisations where token(key) %3c token(?)"/>
.. snip
</route>
> Cassandra component for Camel http://github.com/ticktock/camel-cassandra
> ------------------------------------------------------------------------
>
> Key: CAMEL-2939
> URL: https://issues.apache.org/jira/browse/CAMEL-2939
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.3.0
> Reporter: Scott Clasen
> Assignee: Claus Ibsen
> Fix For: 2.15.0
>
> Attachments: camel-cassandra.tar.gz
>
>
> Take a look at http://github.com/ticktock/camel-cassandra, its a Cassandra
> component for Camel.
> Please pull into the camel codebase if its up to snuff, or let me know what I
> need to do to get it there
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)