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 86E09101E5 for ; Wed, 9 Jul 2014 13:39:57 +0000 (UTC) Received: (qmail 66268 invoked by uid 500); 9 Jul 2014 13:39:54 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 66216 invoked by uid 500); 9 Jul 2014 13:39:54 -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 66205 invoked by uid 99); 9 Jul 2014 13:39:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 13:39:53 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of alicia.parisse@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 13:39:51 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X4s5m-0007cX-Nt for users@camel.apache.org; Wed, 09 Jul 2014 06:39:26 -0700 Date: Wed, 9 Jul 2014 06:39:26 -0700 (PDT) From: Licia To: users@camel.apache.org Message-ID: <1404913166732-5753598.post@n5.nabble.com> In-Reply-To: References: <1404899777117-5753574.post@n5.nabble.com> <1404900569510-5753576.post@n5.nabble.com> <1404906839276-5753583.post@n5.nabble.com> <1404907263093-5753585.post@n5.nabble.com> <1404908030426-5753586.post@n5.nabble.com> <1404908358270-5753587.post@n5.nabble.com> <1404908888993-5753588.post@n5.nabble.com> <1404910249855-5753589.post@n5.nabble.com> <1404911144707-5753592.post@n5.nabble.com> Subject: Re: Configuring database with jdbc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I tried what you said. I just removed the camel-context.xml and wrote this in my main : public static void main( String[] args ) throws Exception { //Configuring the database DriverManagerDataSource ds= new DriverManagerDataSource(); ds.setDriverClassName("com.mysql.jdbc.Driver"); ds.setUrl("jdbc:mysql://172.27.178.73:3306"); ds.setUsername("dev"); ds.setPassword("sopragroup"); SimpleRegistry reg = new SimpleRegistry(); reg.put("datasource",ds); //Creating the context CamelContext myContext = new DefaultCamelContext(reg); //Configuring the route XmlRoute myRoute = new XmlRoute(); myContext.addRoutes(myRoute); //Launching the context myContext.start(); //Pausing to let the route do its work Thread.sleep(10000); //Stopping the context myContext.stop(); } But anyways, I'm still getting the exact same errors. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753598.html Sent from the Camel - Users mailing list archive at Nabble.com.