You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by borgel <bo...@gmail.com> on 2008/10/15 14:41:37 UTC
Multiple method invocation on same or different bean
This route:
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.to("bean:fundListDao?methodName=save")
.to("bean:fundListDao?methodName=updateFunds");
will call save twice instead of save and then updateFunds.
Have also tried with
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.pipeline("bean:fundListDao?methodName=save",
"bean:fundListDao?methodName=updateFunds");
Same result.
Wondered if this was reintroduced
http://www.nabble.com/BeanProcessor-multiple-method-invocation-on-same-bean-td14506245s22882.html#a14506245
so I tried to with a different bean:
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.to("bean:fundListDao?methodName=save")
.to("bean:fundDao?methodName=updateFunds");
but updateFunds does not get called.
fromStringToList returns a FundList object.
save takes FundList as input, so do updateFunds.
--
View this message in context: http://www.nabble.com/Multiple-method-invocation-on-same-or-different-bean-tp19992662s22882p19992662.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Multiple method invocation on same or different bean
Posted by borgel <bo...@gmail.com>.
Claus Ibsen wrote:
>
> Hi
>
> The bug in 1.5-SNAPSHOT has been fixed now. So if you were using
> 1.5-SNAPSHOT could you please get the latest snapshot and try again.
>
> Should take 2+ hours before its sync on the maven snapshot repo.
>
>
Yes, I am using 1.5-SNAPSHOT.
It is working now! =)
--
View this message in context: http://www.nabble.com/Multiple-method-invocation-on-same-or-different-bean-tp19992662s22882p20008874.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Multiple method invocation on same or different bean
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
The bug in 1.5-SNAPSHOT has been fixed now. So if you were using 1.5-SNAPSHOT could you please get the latest snapshot and try again.
Should take 2+ hours before its sync on the maven snapshot repo.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Claus Ibsen [mailto:ci@silverbullet.dk]
Sent: 15. oktober 2008 18:43
To: camel-user@activemq.apache.org
Subject: RE: Multiple method invocation on same or different bean
Hi
Are you using the latest 1.5-SNAPSHOT of camel? If so it has a bug in the bean component for selecting methods.
I'm looking into it as I type.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: borgel [mailto:borge.lotre@gmail.com]
Sent: 15. oktober 2008 14:42
To: camel-user@activemq.apache.org
Subject: Multiple method invocation on same or different bean
This route:
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.to("bean:fundListDao?methodName=save")
.to("bean:fundListDao?methodName=updateFunds");
will call save twice instead of save and then updateFunds.
Have also tried with
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.pipeline("bean:fundListDao?methodName=save",
"bean:fundListDao?methodName=updateFunds");
Same result.
Wondered if this was reintroduced
http://www.nabble.com/BeanProcessor-multiple-method-invocation-on-same-bean-td14506245s22882.html#a14506245
so I tried to with a different bean:
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.to("bean:fundListDao?methodName=save")
.to("bean:fundDao?methodName=updateFunds");
but updateFunds does not get called.
fromStringToList returns a FundList object.
save takes FundList as input, so do updateFunds.
--
View this message in context: http://www.nabble.com/Multiple-method-invocation-on-same-or-different-bean-tp19992662s22882p19992662.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Multiple method invocation on same or different bean
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
Are you using the latest 1.5-SNAPSHOT of camel? If so it has a bug in the bean component for selecting methods.
I'm looking into it as I type.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: borgel [mailto:borge.lotre@gmail.com]
Sent: 15. oktober 2008 14:42
To: camel-user@activemq.apache.org
Subject: Multiple method invocation on same or different bean
This route:
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.to("bean:fundListDao?methodName=save")
.to("bean:fundListDao?methodName=updateFunds");
will call save twice instead of save and then updateFunds.
Have also tried with
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.pipeline("bean:fundListDao?methodName=save",
"bean:fundListDao?methodName=updateFunds");
Same result.
Wondered if this was reintroduced
http://www.nabble.com/BeanProcessor-multiple-method-invocation-on-same-bean-td14506245s22882.html#a14506245
so I tried to with a different bean:
from(fromRoute)
.beanRef("transformer", "fromStringToFundList")
.to("bean:fundListDao?methodName=save")
.to("bean:fundDao?methodName=updateFunds");
but updateFunds does not get called.
fromStringToList returns a FundList object.
save takes FundList as input, so do updateFunds.
--
View this message in context: http://www.nabble.com/Multiple-method-invocation-on-same-or-different-bean-tp19992662s22882p19992662.html
Sent from the Camel - Users mailing list archive at Nabble.com.