Hi You need Camel 3.7, and there is a csimple you can use instead of simple.
And then you need to either pre compile or use camel-csimple-joor. See the 2 examples at https://github.com/apache/camel-examples/tree/master/examples/camel-example-csimple https://github.com/apache/camel-examples/tree/master/examples/camel-example-csimple-joor On Sat, Jan 16, 2021 at 11:34 PM Markus Steiner <[email protected]> wrote: > > Hi > Using Camel 3.7.0 inside afterApplicationStart method of my custom > org.apache.camel.spring.boot.CamelContextConfiguration class I have something > already working like: > AdviceWith.weaveById(MY_PATTERN).after().wireTap(MY_URI) > .newExchangeHeader(MY_DATE_HEADER, simple(${date:now}")) > .newExchangeBody(simple(${exchangeProperty["foo"].remove('bar')})); > How could I switch to use csimple here as there seems no > org.apache.camel.builder.Builder.csimple method out there. I think somehow a > class with the corresponding method should get generated at build time to > delegate the call to org.apache.camel.language.csimple.CSimpleHelper#date. > Maybe? > Thanks -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
