Apache Camel MDC UnitOfWork

Viewed 838

We are currently using Apache Camel's (within Spring Boot Application) MDC logging functionality to log custom correlation ID. With Camel 2.x we've implemented a custom UnitOfWork which extends MDCUnitOfWork which sets additional MDC properties based on the Exchange provided. Since Camel 3 MDCUnitOfWork's constructor changed from

public MDCUnitOfWork(Exchange exchange) to

public MDCUnitOfWork(Exchange exchange, InflightRepository inflightRepository, String pattern, boolean allowUseOriginalMessage, boolean useBreadcrumb)

Do you have an idea, where to get all the additional constructor parameters from, when configuring the custom MDCUnitOfWork as a Spring bean?

1 Answers
super(exchange, exchange.getContext().getInflightRepository(), "", false, false);

Why don't you try this?

Related