Message Headers - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

The velocity component sets a couple headers on the message (you can't set these yourself and velocity component will not set these headers which will cause some side effect on the dynamic template support):

Header

Description

CamelVelocityResourceUri

The templateName as a String object.

Headers set during the Velocity evaluation are returned to the message and added as headers. Then it's possible to return values from Velocity to the Message.

For example, to set the header value of fruit in the Velocity template .tm :

$in.setHeader('fruit', 'Apple')

The fruit header is now accessible from the message.out.headers.