iBATIS
The ibatis: component allows you to query, poll, insert, update and delete data in a relational database using Apache iBATIS.
URI format
ibatis:operationName
Where operationName is the name in the iBATIS XML configuration file which maps to the query, insert, update or delete operation you wish to evaluate.
For example if you wish to poll a database for rows using iBATIS and then send them to a JMS Queue via ActiveMQ you could do
from("ibatis:selectAllAccounts"). to("activemq:MyQueue");
Or to consume beans from a JMS queue and insert them into a database you could do...
from("activemq:Some.Queue"). to("ibatis:insertAccount");
Options
Name |
Default Value |
Description |
---|---|---|
initialDelay |
1000 |
Camel 1.3 and older: The number of milliseconds until the first poll when polling (consuming) |
delay |
500 |
Camel 1.3 and older: The number of milliseconds for the subsequent delays after the intial delay |
useFixedDelay |
false |
Camel 1.3 and older: Whether or not the fixed delay is to be used, to enable a repeated timer |
consumer.initialDelay |
1000 |
Camel 1.4: The number of milliseconds until the first poll when polling (consuming) |
consumer.delay |
500 |
Camel 1.4: The number of milliseconds for the subsequent delays after the intial delay |
consumer.useFixedDelay |
false |
Camel 1.4: Whether or not the fixed delay is to be used, to enable a repeated timer |