Thanks Charles,

but as it's deployed into karaf, does it means I have to create an osgi
bundle, with the sqlmap in it (and the xml def of my CamelContext too ?) ?
This particular part is not clear to me, and if i find info on the ibatis /
mybatis part, i can't find this precise detail on how to package / deploy it
to servicemix... Until now, I only had to deploy the CamelContext using
blueprint directly via the deploy folder...

Thanks for your help,

Mike


2011/3/22 Charles Moulliard <[email protected]>

> 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