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 94C414D67 for ; Wed, 8 Jun 2011 17:59:42 +0000 (UTC) Received: (qmail 75260 invoked by uid 500); 8 Jun 2011 17:59:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 75230 invoked by uid 500); 8 Jun 2011 17:59:42 -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 75222 invoked by uid 99); 8 Jun 2011 17:59:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 17:59:42 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marco.zapletal@gmail.com designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 17:59:34 +0000 Received: by fxm2 with SMTP id 2so626553fxm.32 for ; Wed, 08 Jun 2011 10:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=dr3fBT+inp3WavmSsQZ076aHw0mDR6xjkmaZjOTJL80=; b=Kj4huNjxNjeayJP3/VGx2s6XJDL4a6t+bRfyiSSHWpOSW52Q1ZhENjH1M+fn9af2MR Uw7Oxb18TTWGyVg9VLhO2cFDwMHrlLbhdTBk/5+/ulhUxZ+6/SNuE3CeBMu0TH3MYb3r P5UYfTHkyPVAoJdRP5RK0SeEufIEIypZk6cEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=CcD4CxDFa6KL2rAhf5oD8EupKZ/S/7KUdsxlMSXXrZnO6Tz1pkEXKP8dVAoSileoiJ U8W36Ixdw8IijsdLgIm9JPaxrOiy9jKgtkYztUjbepqCTVZ/v5Q25LbumJrpM+AKHvoO yOr3SDrP0FrJGBt160QAfmxgQqm+zhNLI7/Ag= Received: by 10.223.51.4 with SMTP id b4mr2917443fag.93.1307555953929; Wed, 08 Jun 2011 10:59:13 -0700 (PDT) Received: from [192.168.168.136] (fortinat.ifs.tuwien.ac.at [128.131.167.8]) by mx.google.com with ESMTPS id e15sm331910faa.47.2011.06.08.10.59.12 (version=SSLv3 cipher=OTHER); Wed, 08 Jun 2011 10:59:12 -0700 (PDT) Sender: Marco Zapletal Message-ID: <4DEFB85F.8060109@gmail.com> Date: Wed, 08 Jun 2011 19:58:55 +0200 From: Marco Zapletal User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Using properties or headers to persist meta information on the exchange? References: <4DEFA20B.8000300@gmail.com> <4DEFA2C3.2030501@catify.com> <4DEFA500.2010500@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yes, I've read that. Actually, I just wanted to keep my (String) properties when the exchange goes through the JMS queue (similar like headers are kept over JMS queues). If it is the intended behavior that exchange properties are stripped away by the JMS component, I am fine with using headers instead. However, this contradicts then in my opinion to the discussion in [1], where it is mentioned that exchange properties should be used for durable storing (serializable) meta information on the exchange. -- The problem with the non-serializable MessageInfo (which violates the JMS spec) occurs only if I set the transferExchange property on the JMS component to true (which I tried only as a workaround). regards, marco [1] http://camel.465427.n5.nabble.com/How-long-do-the-camel-headers-live-in-routes-td474477.html On 08.06.2011 19:41, Claus Ibsen wrote: > The JMS spec limits what can be send as JMS headers. Read more details > on the Camel JMS wiki page. And for example in the JMS java doc. > > > On Wed, Jun 8, 2011 at 6:36 PM, Marco Zapletal wrote: >> Hi, >> >> thanks for the quick response. Yes, I've tried this, but this opens up >> another problem if you use a CXF endpoint on your route. The CXF endpoint >> seems to store an instance of org.apache.cxf.service.model.MessageInfo on >> the exchange, which is not serializable. This results in a runtime >> exception, which cancels the execution of the process instance. >> >> regards, >> marco >> >> >> On 08.06.2011 18:26, Claus Straube wrote: >>> >>> Hi Marco, >>> >>> have you tried 'transferExchange=true' inside your JMS route? That could >>> be a solution for your JMS problem. >>> >>> Best regards - Claus >>> >>> On 08.06.2011 18:23, Marco Zapletal wrote: >>>> >>>> Hi, >>>> >>>> I learned from this thread >>>> >>>> (http://camel.465427.n5.nabble.com/How-long-do-the-camel-headers-live-in-routes-td474477.html) >>>> that one should use properties instead of headers in order to durable >>>> store meta information on an exchange (acc. to one of the postings, >>>> headers can get lost at endpoints). >>>> >>>> I would like to know whether this in principle correct. If so, I ran >>>> into the problem that properties seem to stripped away if an exchange >>>> goes through a JMS queue. Could anyone tell me what's the recommended >>>> approach to keep meta information durable on the exchange. >>>> >>>> thanks, >>>> marco >>>> >>> >> >> > > >