Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 10236 invoked from network); 30 Oct 2009 16:08:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 16:08:20 -0000 Received: (qmail 24736 invoked by uid 500); 30 Oct 2009 16:08:20 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 24679 invoked by uid 500); 30 Oct 2009 16:08:20 -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 24669 invoked by uid 99); 30 Oct 2009 16:08:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 16:08:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 16:08:09 +0000 Received: by bwz3 with SMTP id 3so3993203bwz.36 for ; Fri, 30 Oct 2009 09:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=aTeG0CAQD/mnZ/HOHHwqysplhB7dukvqdsxbYUQCRRE=; b=bcgD3GISXWQEL+bz4S3jXLsNAXGquOKHfR1jYzZXR1GM+wjoCHKfj+IaxjEi0ScIij HgI/8RhjcTC7TePCDRbuwvlei6ctKaxn6azKsbBoJko5Z1GYqYZ7FJ7uurcPFGsHZ9ha qyjocP7B8TiZ9K87UmyI3IWGBJOyHF73BSVz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=wHfOnNQlz+buSATi72C06ylQ2UAmZwLnjWGfhXT+eUQXmHg62yOjz7wT6DYQ/Veqse pqPygnK9y/6ndLQ8J5gO6LxlPgZNFPa2q0Icj6podBjePM6jYOZ7wGuU8mN+9+pgPDZB njYxqnDVBiTfeHriTBmBtyOxqdmyQRL6kFT9o= MIME-Version: 1.0 Received: by 10.204.34.3 with SMTP id j3mr1254789bkd.23.1256918863367; Fri, 30 Oct 2009 09:07:43 -0700 (PDT) In-Reply-To: <1256906313.4109.16.camel@des0310l.pmenos.com.br> References: <1256906313.4109.16.camel@des0310l.pmenos.com.br> From: Claus Ibsen Date: Fri, 30 Oct 2009 17:07:23 +0100 Message-ID: <5380c69c0910300907v4d4089a8ncd8465d0cbe1500a@mail.gmail.com> Subject: Re: JNDI Registry To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 30, 2009 at 1:38 PM, DANIEL DE OLIVEIRA FERREIRA wrote: > Hi, > > Reading the camel manual, I saw follow snippet: > > =A0 =A0JndiRegistry reg =3D super.createRegistry(); > =A0 =A0reg.bind("testdb", ds); > =A0 =A0return reg; > > but, where I find createRegistry method? There is a way to registre > datasource programmatically, no spring xml? > That above is for unit testing, where you use the camel-test.jar. You can just pass in a JNDI context to the DefaultCameContext contstructor. And there is also a dummy jndi implementation in org.apache.camel.util you can use. And in camel 2.1 there is a SimpleRegistry instead that is even easier to u= se. > Daniel de Oliveira Ferreira > Programador > Farm=E1cias Pague Menos > > danieloliveira@pmenos.com.br > (85) 3255.5453 > www.paguemenos.com.br > > > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus