Ad 1) You set a javax sql DataSource. So search the internet what that is and how to configure it.
Ad 2) You set the queries in the message body. If you dont want to do that, use another component like camel-sql, or camel-mybatis, or camel-jpa from next release which has some support for queries. And there is some database examples https://github.com/apache/camel/tree/master/examples On Tue, Apr 4, 2017 at 3:29 PM, anirban.gupta4 <anirban.gup...@gmail.com> wrote: > Hi, > > I am using camel JDBC component. I found the documentation at the location > > http://camel.apache.org/jdbc.html > > I have two questions here: > 1. I have an URL of type "jdbc:sqlserver://someIP". How will I pass any > queries here? > 2. How to set the userName, password for connecting to this DB? > > I am migrating from some other integration framework to Camel. So do not > know how to do this in Camel. > > Please help > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-Camel-JDBC-component-tp5796916.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2