camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davebarker <dbar...@genscape.com>
Subject example using HazelcastIdempotentRepository in Spring DSL
Date Thu, 28 Feb 2013 20:28:29 GMT
Hello all,
I'm trying to figure out how to use the HazelcastIdempotentRepository as the
idempotentConsumer for a duplicate filter in a Spring DSL route.

example:
...
   <idempotentConsumer messageidRepositoryRef="idempotentRepo">
        <header>PrimaryValue</header>
          .....

<bean id="idempotentRepo"
class="org.apache.camel.processor.idempotent.hazelcast.HazelcastIdempotentRepository"/>

throws the following error:

"No default constructor found; nested exception is
java.lang.NoSuchMethodException: org.apache.c
amel.processor.idempotent.hazelcast.HazelcastIdempotentRepository.<init>()"

I tried supplying a string constructor to HazelcastIdempotentRepository as
shown in the API, but I get the following error:

"Could not convert constructor argument value of type [java.lang.String] to
required type [com.hazelcast.core.HazelcastInstance]: Failed to convert
value of type 'java.lang.String' to required type
'com.hazelcast.core.HazelcastInstance'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[java.lang.String] to required type [com.hazelcast.core.HazelcastInstance]:
no matching editors or conversion strategy found"

What am I doing wrong?

thanks for any help
Dave



--
View this message in context: http://camel.465427.n5.nabble.com/example-using-HazelcastIdempotentRepository-in-Spring-DSL-tp5728318.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message