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 20570200B92 for ; Wed, 28 Sep 2016 18:49:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1F16E160AD3; Wed, 28 Sep 2016 16:49:57 +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 64178160AB8 for ; Wed, 28 Sep 2016 18:49:56 +0200 (CEST) Received: (qmail 85048 invoked by uid 500); 28 Sep 2016 16:49:55 -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 Received: (qmail 85026 invoked by uid 99); 28 Sep 2016 16:49:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 16:49:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BE5B6CD75A for ; Wed, 28 Sep 2016 16:49:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.285 X-Spam-Level: ** X-Spam-Status: No, score=2.285 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id F_4pjABERxEE for ; Wed, 28 Sep 2016 16:49:52 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 493CD6123F for ; Wed, 28 Sep 2016 16:49:52 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mbob.nabble.com (Postfix) with ESMTP id 150303242A64 for ; Wed, 28 Sep 2016 09:45:43 -0700 (PDT) Date: Wed, 28 Sep 2016 09:49:50 -0700 (MST) From: sparekh To: users@camel.apache.org Message-ID: <1475081390809-5788164.post@n5.nabble.com> In-Reply-To: <1475073122470-5788162.post@n5.nabble.com> References: <1475073122470-5788162.post@n5.nabble.com> Subject: Re: Parse Json inside RecipientList MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 28 Sep 2016 16:49:57 -0000 How about a custom processor that parses the JSON string (via GSON) into a JSON object and sets up the HTTP request and headers. I don't believe you can use JsonPath to extract values, just choice or filter them. The custom processor would translate String -> JSON Object, extract the id from JSON object, set up CONTENT_TYPE, METHOD AND URI Headers, remove non HTTP headers. If you set the Exchange.HTTP_URI header you can remove the recipientList and have a to endpoint with a dummy value (.to("https4://dummy")) If the jms message is a serialized POJO then you can use the Camel OGNL expression to grab the idea via body.id Thanks, sparekh -- View this message in context: http://camel.465427.n5.nabble.com/Parse-Json-inside-RecipientList-tp5788162p5788164.html Sent from the Camel - Users mailing list archive at Nabble.com.