Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.7.0
-
None
-
Unknown
Description
Hello,
Since this commit related to CAMEL-20934, it's no longer possible to recreate camel-vm because the prepareExchange method no longer returns an Exchange.
Previously it was possible to write code like this one:
protected Exchange prepareExchange(Exchange exchange) { Exchange result = copyExchangeWithProperties(exchange, m_camelContext); ExchangeExtension exchangeExtension = result.getExchangeExtension(); exchangeExtension.setFromEndpoint(getEndpoint()); exchangeExtension.setFromRouteId(getRouteId()); return result; }
Would it be possible to add back the ability to return the Exchange in the prepareExchange method?
Thank you