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 930A5200C29 for ; Tue, 28 Feb 2017 09:26:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 91A9A160B7C; Tue, 28 Feb 2017 08:26:45 +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 DCFD7160B6A for ; Tue, 28 Feb 2017 09:26:44 +0100 (CET) Received: (qmail 56242 invoked by uid 500); 28 Feb 2017 08:26:39 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 56231 invoked by uid 99); 28 Feb 2017 08:26:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 08:26:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5A697189A8F for ; Tue, 28 Feb 2017 08:26:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.286 X-Spam-Level: ** X-Spam-Status: No, score=2.286 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tkz74YGOLP01 for ; Tue, 28 Feb 2017 08:26:36 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 94D945FC3C for ; Tue, 28 Feb 2017 08:26:36 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mbob.nabble.com (Postfix) with ESMTP id BDF633DC22F8 for ; Tue, 28 Feb 2017 00:04:15 -0800 (PST) Date: Tue, 28 Feb 2017 01:26:35 -0700 (MST) From: alexey-s To: users@camel.apache.org Message-ID: <1488270394959-5794547.post@n5.nabble.com> In-Reply-To: <1487688349587-5794194.post@n5.nabble.com> References: <1487688349587-5794194.post@n5.nabble.com> Subject: Re: Stop component "direct-vm" from another OSGI camelContext MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 28 Feb 2017 08:26:45 -0000 I conducted a series of experiments. Normal JUnit, without OSGI. Creates 2 Camel Context. The first contains The second contains not a single RouteBuilder. Create only ProducerTemplate and send body. JUnit shows stable performance. Go to the Apache Karaf. The first component can be built on anything. Spring, OSGI Blueprint, OSGI SCR or default BundleActivator. The choice does not matter. Here it is quite different. Create Apache Karaf Shell command System components "direct-vm" loses its list of registered components. There is a cleaning list DirectVmComponent.CONSUMERS. The implementation of the command I used OsgiDefaultCamelContext. Then I used DefaultCamelContext. A special role is not playing. When working in the OSGI, DirectVmComponent component does not work as expected in JUnit. Maybe I still see "Also we dont encourge end user to start and stop camel context, as there is a bunch of stuff you need to do this so its correct." -- View this message in context: http://camel.465427.n5.nabble.com/Stop-component-direct-vm-from-another-OSGI-camelContext-tp5794194p5794547.html Sent from the Camel - Users mailing list archive at Nabble.com.