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 996E018512 for ; Fri, 24 Jul 2015 20:14:07 +0000 (UTC) Received: (qmail 8242 invoked by uid 500); 24 Jul 2015 20:14:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 8204 invoked by uid 500); 24 Jul 2015 20:14:06 -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 7845 invoked by uid 99); 24 Jul 2015 20:14:06 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 20:14:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B72BBC0252 for ; Fri, 24 Jul 2015 20:14:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 0E6rx1ETWPHO for ; Fri, 24 Jul 2015 20:13:57 +0000 (UTC) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 10BBF205F2 for ; Fri, 24 Jul 2015 20:13:57 +0000 (UTC) Received: by iecrl10 with SMTP id rl10so22636082iec.1 for ; Fri, 24 Jul 2015 13:13:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=uvkTUQMKlCS2mvq70OYg++vrYaEoSQvKU6AWCJKG0SU=; b=Jj7r5dPtaIv/mTXI35shDcccxbI9ZPLNXW5g2s2/uu6Hv++iiik64lApOeIkrx7dJe ArUpdmo9Bzn+LPE84XW9I8ZR/12Bqx5EpFz4CYyRlwsHf453rXDBDg97+8A1r5a87SPv GHJsbhu2+AqwjinqJTwxgJY801GcEamQ0PgVdIAZxxYJuz4ySvKIqgr6VQ15iYSSQ383 ag8aNMMxsL8+CNwpS/XHKvTHdIFOeD2ImVnPg0VILIHNxgQmtggmvRjH9aNE4hSw+BO8 IaXso2Pyeg7OuxR7fNAZQUGBiWHDGJKitXI0ui+qul0bRKtOhsKigOEwHNX5xN8xZQdW Uxaw== X-Gm-Message-State: ALoCoQlvHobiE2d2u6bl4AHY9BGhIQ63G4d2R+yZvnZxBi+spJaUEUR9do6yKMltuehQRTc8HS3o MIME-Version: 1.0 X-Received: by 10.107.12.82 with SMTP id w79mr26824310ioi.171.1437768836473; Fri, 24 Jul 2015 13:13:56 -0700 (PDT) Received: by 10.64.28.179 with HTTP; Fri, 24 Jul 2015 13:13:56 -0700 (PDT) Date: Fri, 24 Jul 2015 16:13:56 -0400 Message-ID: Subject: Placing and referencing DTO via exchange properties From: Craig Taylor To: users Content-Type: multipart/alternative; boundary=001a113dfe36c47e7c051ba4a4a0 --001a113dfe36c47e7c051ba4a4a0 Content-Type: text/plain; charset=UTF-8 I'm attempting the following route given a TestDTO implemented which has a constructor / getter / setter for a name property: from ("direct:testDTO") .setProperty("testDTO",bean(testDTO)) .to("direct:testDTO2"); from ("direct:testDTO2") .log(LoggingLevel.ERROR, "testDTO property is : ${ property.testDTO.name}") ; The logging output yields only [ main] route2 ERROR testDTO property is : I've tried a number of other types of placement such as constant() etc in place of bean with the same results. Thoughts / Suggestions? (I'm really trying to avoid placing the individual elements of the DTO on the exchange as there will be a large number of them and the existing / intended business services are already focused around usage of a DTO reference. I'm using a property rather than a header due the fact that the body itself will undergo a number of different changes). -- ------------------------------------------- Craig Taylor ctalkobt@ctalkobt.net --001a113dfe36c47e7c051ba4a4a0--