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 9AFC1C788 for ; Sun, 3 Jun 2012 14:41:39 +0000 (UTC) Received: (qmail 37592 invoked by uid 500); 3 Jun 2012 14:41:39 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 37558 invoked by uid 500); 3 Jun 2012 14:41:39 -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 37550 invoked by uid 99); 3 Jun 2012 14:41:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2012 14:41:39 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2012 14:41:33 +0000 Received: by lbok6 with SMTP id k6so3198409lbo.32 for ; Sun, 03 Jun 2012 07:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=AyVGS/7e2av8zZZ8q5+jA1BpInSOHIFGdhBwAKryoEY=; b=rGnCf7whu1pPpPb2wfijYP+gm2dmRQj7vQnAw/utz09LSgXLGUU5zWSzAaAm/IFI9m SARkw72xqXlb9Beim7jiy8sBm0NzeEt4lnXPWx7E3xgoweKcXId30RhFzAxjdjSmDZ5S seUsqAouoAg4WMAop9hvhotG2MEtXBtUiOerT+NmOKC5f8K+A4kDUC35ATXOtSqiqJ8Q qxrTFe13fn8FC+iJpIiAV5dqQbj0oEIxJPTMQ3mn9fL84hTUBjwrF3gZ+zXNgsfab/J2 98FzFUbI/T+Y5YHvF+h2I0BGGrZ85xs83qswrYYMgisYzu3Y9TGs8ge89Al+OHEexb7n lDjA== Received: by 10.112.23.42 with SMTP id j10mr4632746lbf.20.1338734472842; Sun, 03 Jun 2012 07:41:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.49.73 with HTTP; Sun, 3 Jun 2012 07:40:52 -0700 (PDT) In-Reply-To: References: <1336149744248-5686392.post@n5.nabble.com> <1336227551073-5687980.post@n5.nabble.com> From: Claus Ibsen Date: Sun, 3 Jun 2012 16:40:52 +0200 Message-ID: Subject: Re: How to bind an object in the registry camel? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, May 6, 2012 at 9:17 AM, Claus Ibsen wrote: > On Sat, May 5, 2012 at 4:19 PM, sekaijin = wrote: >> Hi >> >> My camel version is 2.8.0 >> I'm running fuseEsb 4.4 >> >> Thank for this response. >> but this does not answer to my problem. >> > > I have logged a ticket to look into this > https://issues.apache.org/jira/browse/CAMEL-5250 > > It should be possible to define the data formats in the XML and > reference them from a route in Java code. > You need to define your data formats inside the . Then it should work. ... Then you can refer to the data format using the id "myBindy" > >> if I define my bundle and my route with blueprint, the doc =A0is suffici= ent to >> find a solution. >> >> my problem is I have to go through a routebuilder because my route can n= ot >> be determined at compile time. >> >> it is defined in the module loading. and as URLs, the presence or absenc= e of >> processors is determined by the values defined in a database. I do not >> know in advance how many roads will be built. >> >> blueprint at startup, launches routebuilder. it reads the database and >> builds the road. >> >> for the datasource for the codec and I do not see how I go from the regi= stry >> >> for example >> . to ("jdbc:" + getDatasourceNameInConfigBase()) >> or >> . from ("mina: tcp: " + getHostNameInConfigBase(): getTCPPortInConfigBas= e() >> + "?codec=3D#mllpHL7Codec") >> require that MyDataSource either the registe and mllpHL7Codec also. >> >> how to place? >> when blueprint gives a hand to routebuilder it can no longer make a bind= on >> the registry >> blueprint does not provide access to the registry camel. >> >> Thank you for your help. >> A+JYT >> >> -- >> View this message in context: http://camel.465427.n5.nabble.com/How-to-b= ind-an-object-in-the-registry-camel-tp5686392p5687980.html >> Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com > FuseSource > Email: cibsen@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen