camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Using Camel JDBC component
Date Tue, 04 Apr 2017 13:56:08 GMT
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.gupta4@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

Mime
View raw message