Hi

No its not possible as the pattern is a fixed name that is calculated
once when the thread is created. And that often happens such as
startup where there are no routes etc.

For route id logging then look at MDC logging

On Fri, Oct 30, 2020 at 3:46 PM Mikhail Lukyanov <lukyanov...@gmail.com> wrote:
>
> Hello everyone.
>
> Is it possible to specify routeId in threadNamePattern?
>
> I found how https://camel.apache.org/manual/latest/threading-model.html
> specify ContextId (camelId)
>
> I tried this
>
> threadNamePattern="Camel (#camelId#) routeId (${routeId}) thread ##counter#
> - #longName#"
>
> But get error
>
> Invalid bean definition with name
> > 'domain-25c65d58-7614-4bf5-9539-edbe6f7d08ef' defined in null: Could not
> > resolve placeholder 'routeId' in value "Camel (#camelId#) routeId
> > (${routeId}) thread ##counter# - #longName#"
>
>
> I use the 2.25.1 version
>
> --
> *With best regards, Lukyanov Mikhail*
> *Tel: **+7-909-69-71-547*



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to