osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Config parameters in splitter group attribute, was: Re: camel-atmosphere-websocket + TomEE


Hi Gary,
I think you can use property placeholders for `group` in version 2.20
onwards. The support for that was added in CAMEL-11421[1].

zoran

[1] https://issues.apache.org/jira/browse/CAMEL-11421

On Fri, May 18, 2018 at 5:35 PM, Mills, Gary (GE Digital)
<gary.L.mills@xxxxxx> wrote:
> can you inject a value from the config params file in to the splitter group attribute? if so, what is the proper way of doing it? thanks!
>
> Is this possible? What am I doing wrong? Thank you!
>
> <split streaming="true" >
> <tokenize token="\n" group="{{noOfLines}}" />
> <log message="Split Group Body: ${body}"/>
>     <to uri="bean:extractHeader" />
>     <to id="acceptedFileType" ref="pConsumer" />
> </split>
>
> <split streaming="true" >
> <tokenize token="\n" group={{noOfLines}} />
> <log message="Split Group Body: ${body}"/>
>     <to uri="bean:extractHeader" />
>     <to id="acceptedFileType" ref="pConsumer" />
> </split>
>
> Gary Lee Mills
> Work:  331-777-2318


-- 
Zoran Regvart