Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C552B7B95 for ; Sun, 24 Jul 2011 10:44:50 +0000 (UTC) Received: (qmail 71354 invoked by uid 500); 24 Jul 2011 10:44:50 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 69891 invoked by uid 500); 24 Jul 2011 10:44:39 -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 69871 invoked by uid 99); 24 Jul 2011 10:44:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jul 2011 10:44:34 +0000 X-ASF-Spam-Status: No, hits=-1999.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jul 2011 10:44:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 95597822D6 for ; Sun, 24 Jul 2011 10:44:09 +0000 (UTC) Date: Sun, 24 Jul 2011 10:44:09 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <258006426.1943.1311504249608.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CAMEL-4263) When using @EndpointInject or other bean initializers, then JMX should pre record those lifecycle events to enlist in JMX later when CamelContext has been enlisted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org When using @EndpointInject or other bean initializers, then JMX should pre record those lifecycle events to enlist in JMX later when CamelContext has been enlisted ------------------------------------------------------------------------------------------------------------------------------------------------------------------- Key: CAMEL-4263 URL: https://issues.apache.org/jira/browse/CAMEL-4263 Project: Camel Issue Type: Improvement Components: camel-core, jmx Affects Versions: 2.8.0, 2.7.2 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.9.0 See nabble http://camel.465427.n5.nabble.com/Camel-issue-with-JMX-Endpoints-disappearing-and-endpoint-injection-for-SEDA-tp4616624p4616624.html The problem is that when you use @EndpointInject, @Produce, @Consume etc. on beans then Spring / Blueprint triggers the CamelBeanPostProcessor which inject those details into the bean. But this process happens very early, before CamelContext is being started. And thus components/endpoints/etc is already been loaded/registered in registry. But they cannot this early be enlisted in JMX, as CamelContext has not yet been enlisted. So we need to pre record those events, and then enlist them after CamelContext has been enlisted in JMX. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira