JDBC Connection Setup
I have been searching the web and have been unable to find out how to configure the datasource when I am trying to use JDBC to connect to a MySQL database. I added the following dependencies to my project: dependency groupIdorg.apache.camel/groupId artifactIdcamel-jdbc/artifactId version2.11.1/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.26/version /dependency /dependencies What needs to be added to the camel-context to configure the connection to my database and make that connection available to my beans? I appreciate any links or information anyone can provide. - Tim -- View this message in context: http://camel.465427.n5.nabble.com/JDBC-Connection-Setup-tp5737089.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JDBC Connection Setup
If you are using Spring, you can define a data source connection within Spring configuration, and use it directly with the url jdbc:SOURCE_NAME. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, August 12, 2013 at 5:46 AM, milltj wrote: I have been searching the web and have been unable to find out how to configure the datasource when I am trying to use JDBC to connect to a MySQL database. I added the following dependencies to my project: dependency groupIdorg.apache.camel/groupId artifactIdcamel-jdbc/artifactId version2.11.1/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.26/version /dependency /dependencies What needs to be added to the camel-context to configure the connection to my database and make that connection available to my beans? I appreciate any links or information anyone can provide. - Tim -- View this message in context: http://camel.465427.n5.nabble.com/JDBC-Connection-Setup-tp5737089.html Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
Re: JDBC Connection Setup
Hi You can take a look at the sql-example http://camel.apache.org/sql-example.html On Sun, Aug 11, 2013 at 11:46 PM, milltj mil...@drop-tank.com wrote: I have been searching the web and have been unable to find out how to configure the datasource when I am trying to use JDBC to connect to a MySQL database. I added the following dependencies to my project: dependency groupIdorg.apache.camel/groupId artifactIdcamel-jdbc/artifactId version2.11.1/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.26/version /dependency /dependencies What needs to be added to the camel-context to configure the connection to my database and make that connection available to my beans? I appreciate any links or information anyone can provide. - Tim -- View this message in context: http://camel.465427.n5.nabble.com/JDBC-Connection-Setup-tp5737089.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen