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 94DA89B6F for ; Thu, 22 Sep 2011 00:51:53 +0000 (UTC) Received: (qmail 46469 invoked by uid 500); 22 Sep 2011 00:51:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 46435 invoked by uid 500); 22 Sep 2011 00:51:53 -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 46427 invoked by uid 99); 22 Sep 2011 00:51:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 00:51:53 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 00:51:47 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R6XVf-0005JY-3o for users@camel.apache.org; Wed, 21 Sep 2011 17:51:27 -0700 Date: Wed, 21 Sep 2011 17:51:27 -0700 (PDT) From: samslara To: users@camel.apache.org Message-ID: <1316652687103-4828478.post@n5.nabble.com> Subject: Message.copy() not exactly a copy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I currently have a camel route that makes use of HttpComponent. After calling a service and getting a String back in the body I tried to do a Message.copy(), with the Message being from exchange.getIn(). The original Message body is of type String but the new Message body isn't of type String, rather it's of type org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream. Why doesn't it keep the body a String? -- View this message in context: http://camel.465427.n5.nabble.com/Message-copy-not-exactly-a-copy-tp4828478p4828478.html Sent from the Camel - Users mailing list archive at Nabble.com.