Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 917C4EC7E for ; Sat, 2 Mar 2013 03:19:58 +0000 (UTC) Received: (qmail 37865 invoked by uid 500); 2 Mar 2013 03:19:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 37822 invoked by uid 500); 2 Mar 2013 03:19:56 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 37865 invoked by uid 99); 1 Mar 2013 19:51:10 -0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of dbarker@genscape.com) Date: Fri, 1 Mar 2013 11:50:42 -0800 (PST) From: davebarker To: users@camel.apache.org Message-ID: <37AC42601B400847AF3A4023D7F05F55257E5A99@LOU-EXC-MBOX01.genscape.local> In-Reply-To: References: <1362083309041-5728318.post@n5.nabble.com> Subject: RE: example using HazelcastIdempotentRepository in Spring DSL MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30779_27992846.1362167442485" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30779_27992846.1362167442485 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks Claus. After looking through some of the unit tests using HazelcastIdempotentRepository with Java DSL, I was able to figure out how to get an instance of HazelcastIdempotentRepository created in Spring: Now I just need to explore the various options for Hazelcast regarding eviction, persistence, etc. thanks again ________________________________ From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5728332h35@n5.nabble.com] Sent: Friday, March 01, 2013 1:58 AM To: Dave Barker Subject: Re: example using HazelcastIdempotentRepository in Spring DSL 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 <[hidden email]> 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: > ... > >
PrimaryValue
> ..... > > 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.()" > > 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: [hidden email] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen ________________________________ If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/example-using-HazelcastIdempotentRepository-in-Spring-DSL-tp5728318p5728332.html To unsubscribe from example using HazelcastIdempotentRepository in Spring DSL, click here. NAML -- View this message in context: http://camel.465427.n5.nabble.com/example-using-HazelcastIdempotentRepository-in-Spring-DSL-tp5728318p5728366.html Sent from the Camel - Users mailing list archive at Nabble.com. ------=_Part_30779_27992846.1362167442485--