camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From borgel <borge.lo...@gmail.com>
Subject Multiple method invocation on same or different bean
Date Wed, 15 Oct 2008 12:41:37 GMT

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.


Mime
View raw message