Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 106F5200C8F for ; Fri, 9 Jun 2017 15:28:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0D7A6160BC8; Fri, 9 Jun 2017 13:28:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 54063160B9C for ; Fri, 9 Jun 2017 15:28:02 +0200 (CEST) Received: (qmail 79142 invoked by uid 500); 9 Jun 2017 13:28:01 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 79131 invoked by uid 99); 9 Jun 2017 13:28:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 13:28:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0BE0CC08D5 for ; Fri, 9 Jun 2017 13:28:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.423 X-Spam-Level: ** X-Spam-Status: No, score=2.423 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pn3K-wyR8fu3 for ; Fri, 9 Jun 2017 13:28:00 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F24415FB8B for ; Fri, 9 Jun 2017 13:27:59 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mwork.nabble.com (Postfix) with ESMTP id 9A03E48A2AA07 for ; Fri, 9 Jun 2017 06:27:58 -0700 (MST) Date: Fri, 9 Jun 2017 06:27:58 -0700 (MST) From: austin solomon To: user@ignite.apache.org Message-ID: <1497014878626-13568.post@n6.nabble.com> In-Reply-To: <1496964523393-13539.post@n6.nabble.com> References: <1496914150067-13513.post@n6.nabble.com> <1496964523393-13539.post@n6.nabble.com> Subject: Re: Using Camel-Ignite for inserting json object to Ignite's Cache MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Fri, 09 Jun 2017 13:28:03 -0000 Hi Val, I'm just playing around with Camel-Ignite component for a POC. my goal is to parse the JSON data and put it to Ignite's cache. I got the syntax from Camel-Ignite component's test project [1] After some changes in my code now the data is inserting into the Ignite's cache (by checking the entries in Ignite Visor) but when querying the result is showing empty. Here is the code: from("mqtt:bar?subscribeTopicName=test&host=tcp://10.10.1.34:1883") .setHeader("id", new JsonPathExpression("$.id")) .setHeader("firstName", new JsonPathExpression("$.firstName")) .setHeader(IgniteConstants.IGNITE_CACHE_KEY, new JsonPathExpression("$.id")) .process(new Processor() { public void process(Exchange exchange)throws Exception { exchange.getIn().setBody( exchange.getIn().getBody(String.class)); } }) .to("ignite-cache:cache:Person?operation=PUT"); What am I missing? [1] https://github.com/apache/camel/blob/master/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCacheTest.java -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Using-Camel-Ignite-for-inserting-json-object-to-Ignite-s-Cache-tp13513p13568.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.