Hi, Add you data source to your Camel registry [1]. For example for Spring that would be just adding data source bean. Then refer to that data source in your endpoints. For example:
@Bean DataSource myDataSource() { ... } from("timer:dbOperation").to("jdbc:myDataSource"); Cheers! [1] http://camel.apache.org/registry.html śr., 21.10.2015 o 09:42 użytkownik ramnar <raam.s...@gmail.com> napisał: > Hi > I want to share the database connection poll among various routes i > have.Iam > using apache common dbcp to implement database connection pooling.Some > where > it was mentioned to create osgi service of the connection pool and use the > service in all the routes.But I could not find resources how to do it.Any > pointer s to it .Thanks in advance > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Share-database-connection-pool-among-routes-tp5772925.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Henryk Konsek http://about.me/hekonsek