[CONF] Apache Camel: Constant (page created)

View: New views
1 Messages — Rating Filter:   Alert me  

[CONF] Apache Camel: Constant (page created)

by confluence-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Constant has been created by Jonathan Anstey (Jul 24, 2008).

Content:

Constant Expression Language

The Constant Expression Language is a really just a way to specify constant strings as a type of expression.

Example usage

The setHeader element of the Spring DSL can utilize a constant expression like:

<route>
  <from uri="seda:a"/>
  <setHeader headerName="theHeader">
    <constant>the value</constant>        
  </setHeader>
  <to uri="mock:b"/>     
</route>

in this case, the Message coming from the seda:a Endpoint will have 'theHeader' header set to the constant value 'the value'.

LightInTheBox - Buy quality products at wholesale price!