camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject RE: Multiple method invocation on same or different bean
Date Wed, 15 Oct 2008 16:43:08 GMT
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.


Mime
View raw message