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 9A0D36852 for ; Thu, 4 Aug 2011 18:10:47 +0000 (UTC) Received: (qmail 43980 invoked by uid 500); 4 Aug 2011 18:10:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 43849 invoked by uid 500); 4 Aug 2011 18:10:46 -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 43841 invoked by uid 99); 4 Aug 2011 18:10:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 18:10:46 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of ruangerm@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 18:10:40 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qp2N9-0003fi-GB for users@camel.apache.org; Thu, 04 Aug 2011 11:10:19 -0700 Date: Thu, 4 Aug 2011 11:10:19 -0700 (PDT) From: ruangerm To: users@camel.apache.org Message-ID: <1312481419494-4667349.post@n5.nabble.com> Subject: How print header without square brackets MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I need to send a text message response to a JMS queuethat contains an existing header (file_header) value (in this case something like B,S,3,10) in the outgoing body . So the response needs to look something like this: B,S,3,10 2,2,3,4,List 2,BList2 2,2,3,4,List 3,BList3 ... I am using the following to construct the response: transform(simple("${header.file_header}\n${body}")).to("jms:.... However, the output is being created like this on my JMS queue [B,S,3,10] 2,2,3,4,List 2,BList2 2,2,3,4,List 3,BList3 Is it possible to have the brackets removed without having to revert to some kind of string manipulation in Java in a process/bean? Any help is appreciated greatly. Regards Ruan -- View this message in context: http://camel.465427.n5.nabble.com/How-print-header-without-square-brackets-tp4667349p4667349.html Sent from the Camel - Users mailing list archive at Nabble.com.