Hi,
one question that seems to be borderline betwwen Camel and SMX :
I want to raise some events (posting messages on a queue) based on events
occured on table in a database. So, in fact, I want to react upon insert in
a table. To do so, I thought about a route, using a timer then a MyBatis
then posting to a queue.
the route could look like this :
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="timer://pollTheDatabase?delay=30000"/>
<to
uri="mbatis:selectAllNewlyInsertedPeople?statementType=QueryForList"/>
<to uri="activemq://events" />
</route>
</camelContext>
I haven't found config sample using SpringConfig nor blueprints.... My
question is : where do I define the SQLmap... normally it should be defined
in another xml file, if I was building the route in java... but how do if I
want to use a route configured with blueprint ?
Or maybe am I wrong and should I use a totally different way ?
Thanks for any help,
Mike