This content has been marked as final.
Show 2 replies
-
1. Re: Camel Binding - Aggregation Strategy
slayercode2 Jan 23, 2015 11:13 PM (in response to andrefrancisco)Hello,
To add a bean to the registry, you have to annotate it with @Named("myBeanName") and you can use it in a camel route, as follows: <route><bean ref="myBeanName" method="myMethodName"/>.</route>
A camel processor can developped as follows:
@Named("MyProcessor")
public class MyProcessor implements org.apache.camel.Processor {
public MyProcessor() {
}
@Override
public void process(org.apache.camel.Exchange exchange) throws Exception {
//your code
}
}
You can integrate this processor in your route as follows: <route><process ref="MyProcessor"/></route>
-
2. Re: Camel Binding - Aggregation Strategy
andrefrancisco Jan 26, 2015 5:48 AM (in response to slayercode2)Hi Akram!
Thank you so much! It worked just fine