Re: set string marshal encoding by a property-file

2013-05-21 Thread satspeedy
Hi Claus, thanks for your answer...I've resolved it differently...implemented several routes for any case. But I'll keep your answer in mind for next time. Thanks. Regards satspeedy 2013/5/17 Claus Ibsen-2 [via Camel] < ml-node+s465427n5732700...@n5.nabble.com> > You can always use the API

Re: set string marshal encoding by a property-file

2013-05-16 Thread Claus Ibsen
You can always use the API from CamelContext to parse it, and then set the value in the route. String parsed = camelContext.resolvePropertyPlaceholders("{{xxx}}"); marshal().string(parsed) On Thu, May 16, 2013 at 10:19 AM, satspeedy wrote: > Hi Claus, > > furthermore same problem...it won't b

Re: set string marshal encoding by a property-file

2013-05-16 Thread satspeedy
Hi Claus, furthermore same problem...it won't be parsed. Any other possibility to solve it? thanks beforehand. regards satspeedy -- View this message in context: http://camel.465427.n5.nabble.com/set-string-marshal-encoding-by-a-property-file-tp5732657p5732664.html Sent from the Camel - User

Re: set string marshal encoding by a property-file

2013-05-16 Thread Claus Ibsen
Try with org.apache.camel.model.dataformat.StringDataFormat sdf = new StringDataFormat(); sdf.setCharset("{{}}"); And in the route .marshal(sdf) On Thu, May 16, 2013 at 9:41 AM, satspeedy wrote: > Hi Claus, > > thanks for your answer...placeholders aren't supported, too. > > Any other pos

Re: set string marshal encoding by a property-file

2013-05-16 Thread satspeedy
Hi Claus, thanks for your answer...placeholders aren't supported, too. Any other possibility to solve it? Regards satspeedy -- View this message in context: http://camel.465427.n5.nabble.com/set-string-marshal-encoding-by-a-property-file-tp5732657p5732660.html Sent from the Camel - Users mai

Re: set string marshal encoding by a property-file

2013-05-16 Thread Claus Ibsen
Try with .marshal().string("{{output.encoding}}") Though not sure if we support the placeholders there, but give it a try first. On Thu, May 16, 2013 at 9:06 AM, satspeedy wrote: > Hi @all, > > my purpose is to make the encoding of marshalling configurable in the > following route by a property