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>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-jdbc</artifactId>
> <version>2.11.1</version>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.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).



Reply via email to