You can use a RoutePolicy which has callbacks when routes are initialized / started etc where you can get hold of the endpoint.
There is a JIRA about allowing a consumer to be endpoint aware. But I think this required some API changes and was deferred for Camel 3.x. On Fri, Dec 9, 2016 at 12:38 AM, Quinn Stevenson <qu...@pronoia-solutions.com> wrote: > I’m trying to get the Camel route Id of the route that my component is > running inside when my component is started, but I can’t seem to figure out > how to navigate the Camel APIs to get what I’m after. > > I have basically a DefaultEndpoint, and from that endpoint, I need to get the > routeId. > > Any ideas? > > > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2