camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen J <>
Subject Exchange headers in velocity
Date Tue, 17 Jun 2008 15:49:09 GMT

Is it possible to modify the headers when using a velocity template? I have
tried numerous different ways that I thought would work, but it seems my
processor always reads a null for the header I try to set in the velocity

Here's a snippet of my xml route code....
	   <from uri="amq:velocity"/>
	   	<methodCall bean="fruitFilter" method="isApple"/>
        	<to uri="velocity:templates/AppleVelocityTemplate.vm" />
        	<process ref="velocityProcessor" />
	   	<methodCall bean="fruitFilter" method="isOrange"/>
        	<to uri="velocity:templates/OrangeVelocityTemplate.vm" />
    	        <process ref="velocityProcessor" />

Note: I also tried adding the headers in my "fruitFilter" bean, but that
didn't work either.
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message