iBATIS
The ibatis: component allows you to query, poll, insert, update and delete data in a relational database using Apache iBATIS.
URI format
Code Block |
---|
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
Code Block |
---|
from("ibatis:selectAllAccounts"). to("activemq:MyQueue"); |
Or to consume beans from a JMS queue and insert them into a database you could do...
Code Block |
---|
from("activemq:Some.Queue"). to("ibatis:insertAccount"); |
Options
Name | Default Value | Description |
---|---|---|
initialDelay | 1000 | The number of milliseconds until the first poll when polling (consuming) |
delay | 500 | The number of milliseconds for the subsequent delays after the intial delay |
useFixedDelay | false | Whether or not the fixed delay is to be used, to enable a repeated timer |
Include Page | ||||
---|---|---|---|---|
|