yasserzamani commented on pull request #5543:
URL: https://github.com/apache/camel/pull/5543#issuecomment-839581238
Another possibility is adding a method which wraps following logic (to keep
backward-compatibility as well as addressing above issue that I said):
```java
String getFromRouteEndpointUri()
{
String fromEndpointUri = null;
if (message.getExchange().getFromEndpoint() != null) {
fromEndpointUri =
message.getExchange().getFromEndpoint().getEndpointUri();
} else {
Route fromRoute =
message.getExchange().getContext().getRoute(message.getExchange().getFromRouteId());
if (fromRoute != null) {
fromEndpointUri = fromRoute.getEndpoint().getEndpointUri();
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]