Hi Mike,

According to the doc,

This component will by default load the MyBatis SqlMapConfig file from
the root of the classpath and expected named as SqlMapConfig.xml.
If the file is located in another location, you would have to
configure the configurationUri option on the MyBatisComponent
component.

Regards,

Charles Moulliard

Sr. Principal Solution Architect - FuseSource
Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard



On Tue, Mar 22, 2011 at 2:25 PM, Michael Dewitte
<[email protected]> wrote:
> 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
>

Reply via email to