camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akoufoudakis <>
Subject Re: how to get subject and body for mail from a properties file
Date Thu, 14 May 2015 07:54:59 GMT
Hello, Gordon!

I would do it like this.

<propertyPlaceholder id="emailProps" location="classpath:xxx"/>
<route id="ActionProcessor:direct:email">
            <from uri="direct:email"/>
            <setHeader headerName="subject">
            <setHeader headerName="contentType">
            <to ref="uri"/>

If you want to keep your property file visible in your whole spring context,
then I would do a trick like:

 <context:property-placeholder ignore-resource-not-found="true"
location="classpath:xxx" id="props"/>
   <propertyPlaceholder id="myProps" location="ref:props"/>


For more information you can always go to

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

View raw message