[
https://issues.apache.org/jira/browse/CAMEL-14257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988564#comment-16988564
]
Claus Ibsen commented on CAMEL-14257:
-------------------------------------
However configuring camel from within the route builder configure method is not
recommended as spring boot auto configuration kicks in afterwards and then
change to use its default settings. And that is why you see that true -> false.
Its a problem with spring boot auto configuration as you cannot tell it to not
configure a value if its not configured, as you cant see the difference whether
it was set or its its default value. As spring boot does direct field
manipulation, and you also need to have default values set so it gets known to
tooling etc.
> allowUseOriginalMessage not configurable
> ----------------------------------------
>
> Key: CAMEL-14257
> URL: https://issues.apache.org/jira/browse/CAMEL-14257
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-core-engine
> Affects Versions: 3.0.0
> Reporter: michael elbaz
> Priority: Major
>
> *Context*
> Using spring boot container with camel 3 i'm unable to use original message i
> get this exception
> {code:java}
> Error executing reactive work due to AllowUseOriginalMessage is disabled.
> Cannot access the original message.. This exception is ignored
> {code}
> Even doing this:
> {code:java}
> getContext().setAllowUseOriginalMessage(true);
> {code}
> I observe using debugger that
> org.apache.camel.impl.engine.AbstractCamelContext.*isAllowUseOriginalMessage()*
> is called twice at startup first *allowUseOriginalMessage* is *true* then is
> become *false*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)