Camel does not bind to Bean method that takes Exchange as parameter

Solution Verified - Updated -

Environment

Red Hat JBoss Fuse 6.3

Issue

In earlier version of Fuse, the following combination would work:

<bean id="_bean2" method="noArgs()" ref="org.sample.SomeBean" />
// Works.  Camel found this method.
SomeBean.noArgs(Exchange exc)           

It is noted that in Fuse 6.3 this no longer works. The method can still be reached, though:

// Don't use parenthesis in 'method' 
<bean id="_bean1" method="noArgs" ref="org.sample.SomeBean" />

Resolution

Do not use parenthesis in method configuration.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.