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 A5CDA10586 for ; Wed, 30 Oct 2013 15:30:09 +0000 (UTC) Received: (qmail 91615 invoked by uid 500); 30 Oct 2013 15:28:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 91582 invoked by uid 500); 30 Oct 2013 15:28:35 -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 91346 invoked by uid 99); 30 Oct 2013 15:28:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 15:28:24 +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 cristiano.costantini@gmail.com designates 209.85.212.175 as permitted sender) Received: from [209.85.212.175] (HELO mail-wi0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 15:28:20 +0000 Received: by mail-wi0-f175.google.com with SMTP id hm4so6986085wib.2 for ; Wed, 30 Oct 2013 08:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=btIUgBalZtmN41fKELKcRgC94Uc7gD/XUAqyvBN8E4k=; b=hlLw/nGMrOPwDXW7V4yDieaZffTd7aHbs22UCiOJhcflx5iotNbS1VnOz6SUK01GEu jWbWjO6smLf7/5SZ644DoIBsj8w69eBIUOgTxM7B5tWP61t0X5yEEADK9UmyRn5m1QMO IzXM/fT56DCH7j+K99Tv3OZztq1j8aIgY9eLjB+kV+LUAJ2QhaHTVSNiZKGwaLNaAgkP dCxLHi5QuJ38rMlGkVeaBfreiLeZVkK0mMecdLJ9Nyq2b0YUqDx2BZkxv8M3OODTO/rI T+usrxEQGi6akTdjXGdh2tqKX147ycRloSkMrVpmAu+Ksduw7lgYBzVCml/PhOjKUhdz smkQ== MIME-Version: 1.0 X-Received: by 10.194.173.163 with SMTP id bl3mr5447505wjc.10.1383146878507; Wed, 30 Oct 2013 08:27:58 -0700 (PDT) Received: by 10.217.52.4 with HTTP; Wed, 30 Oct 2013 08:27:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 Oct 2013 16:27:58 +0100 Message-ID: Subject: Re: Reusing definition of Data Formats From: Cristiano Costantini To: users@camel.apache.org Content-Type: multipart/alternative; boundary=089e013c62205d9fcb04e9f6fa04 X-Virus-Checked: Checked by ClamAV on apache.org --089e013c62205d9fcb04e9f6fa04 Content-Type: text/plain; charset=ISO-8859-1 Thank you! I will search the ticket on JIRA and follow the evolution from there. bye, Cristiano 2013/10/30 Claus Ibsen > Yeah there is a ticket about allow to configure other stuff than > routes in so someday in Camel we will support this more > easily. > > > > > On Wed, Oct 30, 2013 at 11:54 AM, Cristiano Costantini > wrote: > > Hi All, > > > > I'm using happily the elements to define routes once and > > then use them multiple times. > > Well, I actually need to basically use the routes twice: > > - in the tests, with local endpoints and mocks > > - in production, inside karaf, where here are osgi service references I > > don't have in tests > > > > Today I needed to use a but this break my strategy. > > > > > > I use 3 spring beans xml files, "routes.xml", "test.xml" and "osgi.xml": > > - "routes.xml" contains > > - "test.xml" contains a for development and testing > > - "osgi.xml" contains a for deployment > > > > in tests I run "routes.xml" and "test.xml", while in production I deploy > > "routes.xml" and "osgi.xml" > > > > I like this strategy because I change often the camel routes and in this > > way I don't have to align the ones in the tests and the one deployed to > > karaf. > > > > > > However can't be used in , so I have to > > define it in the , this mean I have to define a > dataformat > > in both "test.xml" and "osgi.xml"... > > > > Anyone have an idea on how I can re-use a dataformat defined somewhere > > else? > > In practice I would like to define the in "routes.xml" or > > similar so I don't have to repeat that definition... > > > > Thank you > > Cristiano > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cibsen@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > --089e013c62205d9fcb04e9f6fa04--