Translate this camel route snippet from Java DSL to Blueprint xml



Does anyone know how to write this camel route snippet in blueprint xml's sytax?



.setHeader("headerName").method(beanInstance, "methodToGetHeaderValue")


I assume it's something like this but I can't get the exact syntax down.



<setHeader headerName="theHeader">
<bean id="beanId" ref="MyBean" method="BeanMethod"/>
</setHeader>


Thanks!


No comments:

Post a Comment