camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmh <>
Subject how to get subject and body for mail from a properties file
Date Wed, 13 May 2015 19:58:05 GMT
I am using Camel mail to send an email when something happens in a rabbitmq
I have all of my properties in a properties file.
I have the propertyplaceholder defined before camel context:

  <context:property-placeholder ignore-resource-not-found="true"

Below is my route:
<route id="ActionProcessor:direct:email">
            <from uri="direct:email"/>
            <setHeader headerName="subject">
            <setHeader headerName="contentType">
            <to ref="uri"/>
The question is how do I read the values from the below properties and
populate the body and subject?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message