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 787D1E5C2 for ; Fri, 4 Jan 2013 15:53:26 +0000 (UTC) Received: (qmail 23612 invoked by uid 500); 4 Jan 2013 15:53:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 23579 invoked by uid 500); 4 Jan 2013 15:53:26 -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 23569 invoked by uid 99); 4 Jan 2013 15:53:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 15:53:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of henri.tremblay@gmail.com designates 209.85.210.45 as permitted sender) Received: from [209.85.210.45] (HELO mail-da0-f45.google.com) (209.85.210.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 15:53:17 +0000 Received: by mail-da0-f45.google.com with SMTP id w4so7572971dam.32 for ; Fri, 04 Jan 2013 07:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=9sY6M3qAgVeMciEESabcwZAQesPajoLEX4735+khVL4=; b=hhCAoVdLDlu1OE1bsgnxQYcPF69lxnXxyB9BwjDOao6fsqyCSSdZTv2Zi8RUINqke7 o7NP3Ey6pmWb3zNQDUnj8vK/+5OPnhYoBwQrT02yMCDbD2t9q5dGzzn1uqMnGpf4Rb5P 0OnYVP3gayQTFc4TqYjiiOrz4MuWg9TrvjdFsAs4vWiHQ6h7B5r4zc/A5bZHvPKZz9dQ Pk6CnH+Z4iqyDguBgRw4FKNVLjryAb1HR1aQKVSnCZLdu9UksveHbQrPEDzcEc8Edjsy ug6NVe2QH+PcnnwNXP5UKKq8ur/KmfQL2FzCkfMR+g/pUfxgLCtDeaid7N2pEXy0uagO bl1A== Received: by 10.68.253.161 with SMTP id ab1mr144013003pbd.97.1357314777493; Fri, 04 Jan 2013 07:52:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.85.193 with HTTP; Fri, 4 Jan 2013 07:52:37 -0800 (PST) From: Henri Tremblay Date: Fri, 4 Jan 2013 16:52:37 +0100 Message-ID: Subject: Remove an advice To: users@camel.apache.org Content-Type: multipart/alternative; boundary=047d7b2e08cd29321404d2787901 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e08cd29321404d2787901 Content-Type: text/plain; charset=ISO-8859-1 Hi, Happy new year to everyone. I'm doing integration tests. I'm reading from a JMS queue and then doing some special stuff is the JMSMessageID already exist. I want to test that the "special stuff" is correctly called. So right now I'm doing this: - Adding an advice at the beginning of the route that set the JMSMessageID - Sending two messages Everything is fine but since it's an integration tests, my route is now dirty and cannot be reused for other tests. So I'm stuck. I'm using a org.apache.camel.test.junit4.CamelTestSupport. The camel context comes from a SingletonBeanFactory somewhere else (I can't change that). So, I would like a solution to get an "unweaved" route back. The solution is can see: - But back the original route. (How?) - Remove the weaving on the route (How?) - Reload the context with it's original content (How?) - Set the JMSMessageId without weaving (How?) - ??? Any ideas are welcome Cheers, Henri --047d7b2e08cd29321404d2787901--