You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Alan Camillo <al...@gmail.com> on 2011/06/04 01:12:05 UTC

Alan: batch database insert

Hello!
How can I make a batch insert in database using camel?
Today I'm using mybatis to do the insert operations. But I believe they
don't have suporte.

Re: Alan: batch database insert

Posted by Alan Camillo <al...@gmail.com>.
I believe so.
I'm working on something.
If it is good enough, could be a enhancement.

Alan

On Sat, Jun 4, 2011 at 12:38 PM, Romain Manni-Bucau
<rm...@gmail.com>wrote:

> Hi,
>
> i had something close to do and playing with an aggregator to do a kind of
> commit interval is possible but doesn't exist out of the box, it could be a
> good enhancement.
>
> - Romain
>
> 2011/6/4 Alan Camillo <al...@gmail.com>
>
> > I get hundreds of messages by a queue and I have to insert those messages
> > in
> > 2 databases.
> > Today I already use MyBatis for this operations but I believe a batch
> > operation could be better.
> >
> > I'm tryng to find out something out of the box, as you said.
> > But you are right, I can do something like that just using Java.
> >
> > Thanks!
> > Alan
> >
> > On Sat, Jun 4, 2011 at 3:43 AM, Claus Ibsen <cl...@gmail.com>
> wrote:
> >
> > > Hi
> > >
> > > Can you explain a bit more what you mean?
> > >
> > > Camel does have a MyBatis component as well
> > > http://camel.apache.org/mybatis
> > >
> > > And in the end its all just Java code, so you can do whatever you want
> > > from a Java bean, if there is nothing out of the box that fits your
> > > needs.
> > >
> > > On Sat, Jun 4, 2011 at 1:12 AM, Alan Camillo <al...@gmail.com>
> > > wrote:
> > > > Hello!
> > > > How can I make a batch insert in database using camel?
> > > > Today I'm using mybatis to do the insert operations. But I believe
> they
> > > > don't have suporte.
> > > >
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > FuseSource
> > > Email: cibsen@fusesource.com
> > > Web: http://fusesource.com
> > > Twitter: davsclaus, fusenews
> > > Blog: http://davsclaus.blogspot.com/
> > > Author of Camel in Action: http://www.manning.com/ibsen/
> > >
> >
>

Re: Alan: batch database insert

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

i had something close to do and playing with an aggregator to do a kind of
commit interval is possible but doesn't exist out of the box, it could be a
good enhancement.

- Romain

2011/6/4 Alan Camillo <al...@gmail.com>

> I get hundreds of messages by a queue and I have to insert those messages
> in
> 2 databases.
> Today I already use MyBatis for this operations but I believe a batch
> operation could be better.
>
> I'm tryng to find out something out of the box, as you said.
> But you are right, I can do something like that just using Java.
>
> Thanks!
> Alan
>
> On Sat, Jun 4, 2011 at 3:43 AM, Claus Ibsen <cl...@gmail.com> wrote:
>
> > Hi
> >
> > Can you explain a bit more what you mean?
> >
> > Camel does have a MyBatis component as well
> > http://camel.apache.org/mybatis
> >
> > And in the end its all just Java code, so you can do whatever you want
> > from a Java bean, if there is nothing out of the box that fits your
> > needs.
> >
> > On Sat, Jun 4, 2011 at 1:12 AM, Alan Camillo <al...@gmail.com>
> > wrote:
> > > Hello!
> > > How can I make a batch insert in database using camel?
> > > Today I'm using mybatis to do the insert operations. But I believe they
> > > don't have suporte.
> > >
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > FuseSource
> > Email: cibsen@fusesource.com
> > Web: http://fusesource.com
> > Twitter: davsclaus, fusenews
> > Blog: http://davsclaus.blogspot.com/
> > Author of Camel in Action: http://www.manning.com/ibsen/
> >
>

Re: Alan: batch database insert

Posted by Alan Camillo <al...@gmail.com>.
I get hundreds of messages by a queue and I have to insert those messages in
2 databases.
Today I already use MyBatis for this operations but I believe a batch
operation could be better.

I'm tryng to find out something out of the box, as you said.
But you are right, I can do something like that just using Java.

Thanks!
Alan

On Sat, Jun 4, 2011 at 3:43 AM, Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> Can you explain a bit more what you mean?
>
> Camel does have a MyBatis component as well
> http://camel.apache.org/mybatis
>
> And in the end its all just Java code, so you can do whatever you want
> from a Java bean, if there is nothing out of the box that fits your
> needs.
>
> On Sat, Jun 4, 2011 at 1:12 AM, Alan Camillo <al...@gmail.com>
> wrote:
> > Hello!
> > How can I make a batch insert in database using camel?
> > Today I'm using mybatis to do the insert operations. But I believe they
> > don't have suporte.
> >
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Re: Alan: batch database insert

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Can you explain a bit more what you mean?

Camel does have a MyBatis component as well
http://camel.apache.org/mybatis

And in the end its all just Java code, so you can do whatever you want
from a Java bean, if there is nothing out of the box that fits your
needs.

On Sat, Jun 4, 2011 at 1:12 AM, Alan Camillo <al...@gmail.com> wrote:
> Hello!
> How can I make a batch insert in database using camel?
> Today I'm using mybatis to do the insert operations. But I believe they
> don't have suporte.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/