Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8D91C200BD9 for ; Fri, 9 Dec 2016 15:10:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8C239160B1C; Fri, 9 Dec 2016 14:10:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D4E3D160B04 for ; Fri, 9 Dec 2016 15:10:31 +0100 (CET) Received: (qmail 21805 invoked by uid 500); 9 Dec 2016 14:10:31 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 21793 invoked by uid 99); 9 Dec 2016 14:10:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 14:10:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2422EC0109 for ; Fri, 9 Dec 2016 14:10:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pronoia-solutions-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8dlg3MJt2oid for ; Fri, 9 Dec 2016 14:10:28 +0000 (UTC) Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E40AE5FDF1 for ; Fri, 9 Dec 2016 14:10:27 +0000 (UTC) Received: by mail-pg0-f47.google.com with SMTP id p66so8282393pga.2 for ; Fri, 09 Dec 2016 06:10:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pronoia-solutions-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=LiOuxl7/4ci6BkLcVJyxDU5RQ9/1o+rrVTjIpz/u5T8=; b=MwVmmCrOgg2+tZqdvRtl0a3ngL7CjeB3j2YohKUSNbCIO4M3nlyQCj2FpE3f0bLMW0 wTbfqa7oc1gkZOVGDCypwme7TtdhghpDzXUrc5EFUIcyLmzld6p6RJvhEFXQzyGlPAfi bV2Y/95bU4M2GLOQ18int++eI2xEcrry59oAFv9qvbg3Go4Q9ONjE/22kFJudmZlodxw WgN7zcZvhUJdqipdEl21Xg6+a6VI45koRJHJjEhmdTVj7Je5uJQcH6tKSzZ3pWggMyBm Q2cvF87c36UIigd0JZ2PBE74FmSoTCnNw7vsXHBCH/x0u/swOLOifT5DwOYzbkzrSEMq sg2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=LiOuxl7/4ci6BkLcVJyxDU5RQ9/1o+rrVTjIpz/u5T8=; b=Djm6BAHyorH/ASlK4kn1+3SXj55tBVimzzEdBSiVwQL8pf0nPYNFIxjMnyLav1BGSw NQ4QRGgqqobLAIaNiHo9HDE91TaqO7Fv1rN+Oc1k9bVnJogWC2h31YBz3nT0zIXnaqbN mXo+HJ6nESUAmlnA5vO4cz55rwisxOYDp/IKGnuUfxsOrvHM9HXhv4mih0llEegJDNdH 2vbKJ5m9fyL8fby660J8T4Jk3W0W71aFDz3zVTkzMQ5Vzsjh6V0zJtloDGKHO5H6KjHk jyhzOBfkOf9KJnLe2FBee781/1S++yvyD7zIX9SFwA5A9kle/Ab8VU5Q7Y1JwqBD0wJZ GFoQ== X-Gm-Message-State: AKaTC011+KoOcms9iuGsuC6FGGxBIhG5C4EDkhYT5bYI/1qbpKXwDzdQSISwyDfiICq91w== X-Received: by 10.99.113.87 with SMTP id b23mr26398110pgn.41.1481292565595; Fri, 09 Dec 2016 06:09:25 -0800 (PST) Received: from macpro.pronoia.local (c-24-10-239-245.hsd1.ut.comcast.net. [24.10.239.245]) by smtp.gmail.com with ESMTPSA id b71sm58044420pfj.62.2016.12.09.06.09.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Dec 2016 06:09:25 -0800 (PST) From: Quinn Stevenson Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: How to determine routeId for an endpoint at startup Date: Fri, 9 Dec 2016 07:09:23 -0700 References: To: dev@camel.apache.org In-Reply-To: Message-Id: <65451534-D080-45A1-916B-6C032E904F85@pronoia-solutions.com> X-Mailer: Apple Mail (2.3251) archived-at: Fri, 09 Dec 2016 14:10:32 -0000 Thank You Claus - but I must not have stated my question very well ;-) I=E2=80=99m working on a custom Camel component - and Event Driver = Consumer to be precise. When the component starts-up, I=E2=80=99d like = to get the Camel route ID of the route that is using the component. =20 I=E2=80=99m extending org.apache.camel.impl.DefaultConsumer for this = consumer, so I=E2=80=99d like to get the route id when I implement the = doStart() method. Hopefully that makes sense. > On Dec 9, 2016, at 1:26 AM, Claus Ibsen wrote: >=20 > You can use a RoutePolicy which has callbacks when routes are > initialized / started etc where you can get hold of the endpoint. >=20 > 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. >=20 >=20 >=20 > On Fri, Dec 9, 2016 at 12:38 AM, Quinn Stevenson > wrote: >> I=E2=80=99m trying to get the Camel route Id of the route that my = component is running inside when my component is started, but I can=E2=80=99= t seem to figure out how to navigate the Camel APIs to get what I=E2=80=99= m after. >>=20 >> I have basically a DefaultEndpoint, and from that endpoint, I need to = get the routeId. >>=20 >> Any ideas? >>=20 >>=20 >>=20 >=20 >=20 >=20 > --=20 > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2