Hi

I suggest to check some unit test of the camel-hazelcast, to see some
examples of this idempotent in use
https://svn.apache.org/repos/asf/camel/trunk/components/camel-hazelcast/

And I guess the Camel docs could be updated a bit with an example for
Spring XML as well.
As the sample we have is Java code based:
http://camel.apache.org/idempotent-consumer.html


On Thu, Feb 28, 2013 at 9:28 PM, davebarker <dbar...@genscape.com> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to