Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 4373 invoked from network); 22 Mar 2011 11:58:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 11:58:20 -0000 Received: (qmail 50324 invoked by uid 500); 22 Mar 2011 11:58:20 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 50291 invoked by uid 500); 22 Mar 2011 11:58:20 -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 50283 invoked by uid 99); 22 Mar 2011 11:58:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 11:58:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of leonard.axelsson@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 11:58:15 +0000 Received: by bwz16 with SMTP id 16so6113545bwz.32 for ; Tue, 22 Mar 2011 04:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=rBx4YH+yTPOoK65fsWsSHSZvWGnHmufecb6KgtGY/QU=; b=HVQrYaDtcj1P/SDe/HbMpOERcfLdWXvjFdXGMrFF01ZsF73nUVt+BEjilH9ozuZ6lc V9rzcFJyvSrUJ7JCcSeruBcp6XfqmT4hWDfILprCnsJfnwa8gb2SW9r77J2r02Wub9Mb yHx0blsdPULQhJqa8w52O1FSUi9Thmra9Onrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=V9es/51kYmpBVrGn0Q9Cvt/X8qXOXE+lXYFS2Py50vxxfN0VEAgpQugXDuXZH5nZW8 hA++wWHctNBkeoGNpYEEoMyektoFOcaj18UsJWTJ3/I+kT275T5S12uqA6ZAqbIbnnuB qjs4J2pP4Esf2zFdZ0ckw8a7eE6e1XnVB/gT8= MIME-Version: 1.0 Received: by 10.204.45.81 with SMTP id d17mr4850320bkf.107.1300795073869; Tue, 22 Mar 2011 04:57:53 -0700 (PDT) Received: by 10.204.64.73 with HTTP; Tue, 22 Mar 2011 04:57:53 -0700 (PDT) Date: Tue, 22 Mar 2011 12:57:53 +0100 Message-ID: Subject: Documentation for automatic marshalling and unmarshalling From: Leonard Axelsson To: users@camel.apache.org Content-Type: multipart/alternative; boundary=00032555a6624db8a8049f10f404 --00032555a6624db8a8049f10f404 Content-Type: text/plain; charset=ISO-8859-1 Hi, At my current gig we have a route roughly like the one below where we send in objects using the ProducerTemplate. Those are marshalled into xml using JAXB (annotations) and then sent on to a JMS queue. jaxb = new JaxbDataFormat("com.entraction.elp.api.message"); from("direct:in") .marshal(jaxb) .to("jms:someQueue") What I found by mistake was that the route worked even if I remove the marshalling step. The object will automatically, it seems, be marshalled. My questions is, is this the right behaviour and if it is, where is this feature documented? Automatic marshalling is nice, but I would like to know for sure that it's intended and not a side effect of something else we do. Regards, /Leo --------------------------------------------------------- Leonard Axelsson Agical AB E-mail: leonard.axelsson@agical.com Blog: http://xlson.com/ Twitter: xlson --00032555a6624db8a8049f10f404--