If I annotate one of them : the one annotated is executed but the other is
missed in the route
Is this syntax correct :
from(file)
.to(beanA) // Create Request
.to(beanB) // parse request
.to(queueA)
from(queueA)
.to(beanC) // validate request
.to(beanD method="updateStatus")
.to(queueB)
...
from(queueX)
.to(beanX)
.to(beanD method="updateStatus")
public class beanD {
@Handler
public void updateStatus(@Body Request request) {
}
public void updateStatus(@Body Report report, @Header( value="requestId"
) String requestId) {
}
}
Regards,
Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer
*****************************
blog : http://cmoulliard.blogspot.com
On Tue, Jul 14, 2009 at 11:37 AM, James Strachan
<[email protected]>wrote:
> 2009/7/14 Charles Moulliard <[email protected]>:
> > So, the only solution is to have two methods with two different names as
> I
> > mention in my first post.
>
> No - just annotate only one of them.
>
> How else should Camel choose which method?
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>