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 2C8F010C3D for ; Tue, 18 Mar 2014 06:11:15 +0000 (UTC) Received: (qmail 57045 invoked by uid 500); 18 Mar 2014 06:11:14 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 56830 invoked by uid 500); 18 Mar 2014 06:11:12 -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 21720 invoked by uid 99); 17 Mar 2014 20:18:08 -0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Date: Mon, 17 Mar 2014 13:17:43 -0700 (PDT) From: doug5791 To: users@camel.apache.org Message-ID: <1395087463555-5749002.post@n5.nabble.com> Subject: Camel-Hazelcast: Adding values into a Map MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am dealing with data in a route where the body of the exchange is a single string. I have been able to add this string from the body of the exchange to the Hazelcast grid, however, I would like to add the string to a Map instead of a list. The documentation I found here does not show a clear example of how information from a "real" exchange is added to the Map; only a template example. Using the below route does not add the string values to the map: (probably because there is no key?) from("consumer:test") .setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)) .toF("hazelcast:%shmap", HazelcastConstants.MAP_PREFIX); Any ideas on how to provide a key for the value going into the map? Assuming that is the issue. Thanks ahead of time, -Doug -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hazelcast-Adding-values-into-a-Map-tp5749002.html Sent from the Camel - Users mailing list archive at Nabble.com.