Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 87085 invoked from network); 20 Aug 2008 08:54:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2008 08:54:30 -0000 Received: (qmail 75761 invoked by uid 500); 20 Aug 2008 08:54:28 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 75740 invoked by uid 500); 20 Aug 2008 08:54:28 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 75729 invoked by uid 99); 20 Aug 2008 08:54:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 01:54:28 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 08:53:31 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KVjS4-0005am-2p for camel-user@activemq.apache.org; Wed, 20 Aug 2008 01:54:00 -0700 Message-ID: <19065283.post@talk.nabble.com> Date: Wed, 20 Aug 2008 01:54:00 -0700 (PDT) From: dkozic To: camel-user@activemq.apache.org Subject: Marshaling jdbc output with xstream MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: drazen.kozic@asw.eu X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am trying to marshal sql output with xstream like this from("timer://whcTimer?period=20000&delay=10000").setBody( constant("select 1 ID, 'addRequest|38765405818||' skript from dual")).to("seda:whcLog").to("jdbc:dataSource").to("seda:whcLog").splitter(body()).to("seda:whcLog").to("seda:whcA"); from("seda:whcA").to("seda:whcLog").marshal().xstream().to("seda:whcB"); from ("seda:whcB").to("seda:whcLog"); from("seda:whcLog").to("log:asw.someLogger?level=DEBUG&showHeaders=true"); The log output is this: 2008-08-20 10:42:05,890 [seda:whcLog thread:3] DEBUG asw.someLogger:73 - Exchange[Headers:{}, BodyType:String, Body:select 1 ID, 'addRequest|38765405818||' skript from dual] 2008-08-20 10:42:07,906 [seda:whcLog thread:3] DEBUG asw.someLogger:73 - Exchange[Headers:{jdbc.columnCount=2}, BodyType:java.util.ArrayList, Body:[{SKRIPT=addRequest|38765405818||, ID=1}]] 2008-08-20 10:42:07,921 [seda:whcLog thread:3] DEBUG asw.someLogger:73 - Exchange[Headers:{org.apache.camel.splitSize=1, org.apache.camel.splitCounter=0, jdbc.columnCount=2}, BodyType:java.util.HashMap, Body:{SKRIPT=addRequest|38765405818||, ID=1}] 2008-08-20 10:42:07,921 [seda:whcLog thread:3] DEBUG asw.someLogger:73 - Exchange[Headers:{org.apache.camel.splitSize=1, org.apache.camel.splitCounter=0, jdbc.columnCount=2}, BodyType:java.util.HashMap, Body:{SKRIPT=addRequest|38765405818||, ID=1}] 2008-08-20 10:42:08,218 [seda:whcLog thread:3] DEBUG asw.someLogger:73 - Exchange[Headers:{org.apache.camel.splitSize=1, org.apache.camel.splitCounter=0, jdbc.columnCount=2}, BodyType:[B, Body:] After xstream marshalling message body is something strange, not xml. I searched forum and find this entry: http://www.nabble.com/xstream-usage-td18548989s22882.html#a18548989 and this jira issue: http://issues.apache.org/activemq/browse/CAMEL-744 and this one: http://issues.apache.org/activemq/browse/CAMEL-749 I allready have xstream-1.3.jar in my classpath. also I have tryed with -Dfile.encoding=UTF-8, with no results. Please help -- View this message in context: http://www.nabble.com/Marshaling-jdbc-output-with-xstream-tp19065283s22882p19065283.html Sent from the Camel - Users mailing list archive at Nabble.com.