camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: dynamic properties
Date Wed, 20 Mar 2013 22:27:42 GMT
I think you are looking for a template engine like [1], [2] or [3].

[1] http://camel.apache.org/freemarker.html
[2] http://camel.apache.org/velocity.html
[3] http://camel.apache.org/stringtemplate.html

Best,
Christian

On Tue, Mar 19, 2013 at 7:29 AM, jinaLu <jina_lu@yahoo.com> wrote:

> I use camel 2.8 according my serviceMix server.
> In cfg I have:
> message=My message ${property.type} is for user ${property.user}
> messageSubject.invoice=Invoice message
>
> I use Java DSL to define route and osgi blueprint for other purposes. My
> route looks like:
> from("direct:start")
> .to("bean:FindXML")
> .setProperty("type", xpath("/message/@Type"))
> .setProperty("user", xpath("/message/@To"))
> .to("bean:SomeActions")
>  .setHeader("messageText", simple("{{message}}"))
>  .setHeader("messageSubject",
> simple("{{messageSubject.${property.type}}}"))
>
> None of this header setters work.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/dynamic-properties-tp5729339p5729395.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message