Using Mule 3.2.1, I want to pass a Mule Message or Mule Event to an object configured as a spring:bean. For example:
<spring:bean id="myId" class="com.address.className"/>
...
<flow name="flowName">
<component>
<spring-object bean="myId"/>
</component>
</flow>
‘className’ looks like this:
public class className implements MessageProcessor {
@Override
public MuleEvent process(MuleEvent event) throws MuleException {...}
}
The process method is never called though, and there are no errors in the mule log. What am I missing to get my bean to receive the Mule data?
Use
<custom-processor class="com.address.className" />instead.More info:
http://www.mulesoft.org/documentation/display/MULE3USER/Routing+Message+Processors#RoutingMessageProcessors-CustomProcessor
http://www.mulesoft.org/documentation/display/MULE3USER/Custom+Message+Processors