Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 93605 invoked from network); 2 Nov 2009 04:39:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Nov 2009 04:39:32 -0000 Received: (qmail 87790 invoked by uid 500); 2 Nov 2009 04:39:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 87657 invoked by uid 500); 2 Nov 2009 04:39:30 -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 87647 invoked by uid 99); 2 Nov 2009 04:39:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 04:39:30 +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; Mon, 02 Nov 2009 04:39:18 +0000 Received: by bwz3 with SMTP id 3so6435233bwz.36 for ; Sun, 01 Nov 2009 20:38:58 -0800 (PST) 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=FiUGhRtjO5fPtzByOIBfxZcDE5CPKgAZ98nS16Tro4g=; b=J7vNdyNczjHLVV0gH41Ejlw46xLQ18NoMOaHE/5KS2ghSm37O7UHhDBvXkcxFNALfl ts7TEeA1anPSCBXeYN7BUe8RGadjAjSISoFNZadpMJCbgxEcX7rjw2V646qaXtfARYaD KzDr367Q3ppH6JUOR+dB/lPQe1xghmgvLLNbo= 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=e2pW8MqjYcjKVEKFD2wfRT9MGUUp4RhFcpSYBgAHpzW3+xwgT4cv52Ix/ZgzwdvG0X f11b5Ql801tJcSTBaHJwCrbq2fb0qea5lXwhavUTyuPuKIeuCx8C84U1V4AJvsINKIQJ hTzDG5apQDwyHvDeQCIrqydNfWhACMBlegFHw= MIME-Version: 1.0 Received: by 10.204.23.77 with SMTP id q13mr3606199bkb.14.1257136738356; Sun, 01 Nov 2009 20:38:58 -0800 (PST) In-Reply-To: <26155434.post@talk.nabble.com> References: <26155434.post@talk.nabble.com> From: Claus Ibsen Date: Mon, 2 Nov 2009 05:38:38 +0100 Message-ID: <5380c69c0911012038o2af84129td9a828e76e1e9521@mail.gmail.com> Subject: Re: Trying to add JdbcComponent to CamelContext 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 Mon, Nov 2, 2009 at 3:04 AM, kodcanavari wrote: > > > When i do > > InitialContext initialContext =3D new InitialContext(); > DataSource ds =3D (DataSource)initialContext.lookup("jdbc_1"); > > JdbcComponent jdbcComponent =3D new JdbcComponent(); > jdbcComponent.setDataSource(dataSource); > > camelContext.addComponent("jdbc", jdbcComponent); > > How can i use this component in order to send jdbc queries? > When i make from("xx").to("jdbc") i got the following trace : > > thanks. > > =A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:619) > 2009-11-02 02:58:29,703 : LoggerService.log : [ERROR] RouteFileJdbc : > [RouteFileJdbc-0] The callback method start has thrown an exception : No > endpoint could be found for: jdbc, please check your classpath c > ontains the needed camel component jar. You need to add camel-jdbc.jar to the classpath. > org.apache.camel.NoSuchEndpointException: No endpoint could be found for: > jdbc, please check your classpath contains the needed camel component jar= . > =A0 =A0 =A0 =A0at > org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContex= tHelper.java:54) > =A0 =A0 =A0 =A0at > org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.ja= va:138) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteCon= text.java:99) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteCon= text.java:105) > =A0 =A0 =A0 =A0at > org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java= :64) > =A0 =A0 =A0 =A0at > org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java= :58) > =A0 =A0 =A0 =A0at > org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(Process= orDefinition.java:250) > =A0 =A0 =A0 =A0at > org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(Process= orDefinition.java:95) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultRouteContext.createProcessor(DefaultRouteCon= text.java:95) > =A0 =A0 =A0 =A0at > org.apache.camel.model.SplitDefinition.createProcessor(SplitDefinition.ja= va:80) > =A0 =A0 =A0 =A0at > org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinit= ion.java:276) > =A0 =A0 =A0 =A0at > org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.= java:116) > =A0 =A0 =A0 =A0at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:439= ) > =A0 =A0 =A0 =A0at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:126= ) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.= java:569) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCa= melContext.java:924) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCame= lContext.java:517) > =A0 =A0 =A0 =A0at > org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:27= 0) > =A0 =A0 =A0 =A0at > org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:= 260) > =A0 =A0 =A0 =A0at > org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilde= r.java:241) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.j= ava:507) > =A0 =A0 =A0 =A0at > org.ow2.jonas.camel.wrapper.CamelWrapper.addRoutes(CamelWrapper.java:145) > =A0 =A0 =A0 =A0at > org.ow2.jonas.camel.service.impl.CamelService.__addRoutes(CamelService.ja= va:180) > =A0 =A0 =A0 =A0at > org.ow2.jonas.camel.service.impl.CamelService.addRoutes(CamelService.java= ) > -- > View this message in context: http://old.nabble.com/Trying-to-add-JdbcCom= ponent-to-CamelContext-tp26155434p26155434.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > --=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