Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16A0E9FB8 for ; Tue, 12 Jun 2012 18:39:09 +0000 (UTC) Received: (qmail 43294 invoked by uid 500); 12 Jun 2012 18:39:08 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 43265 invoked by uid 500); 12 Jun 2012 18:39:07 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 43255 invoked by uid 99); 12 Jun 2012 18:39:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 18:39:07 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of fabio.l.fonseca@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 18:39:02 +0000 Received: from alf.nabble.com ([192.168.236.21]) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SeVzG-0007mR-Bf for users@felix.apache.org; Tue, 12 Jun 2012 11:38:42 -0700 Date: Tue, 12 Jun 2012 11:38:42 -0700 (PDT) From: fabiolf To: users@felix.apache.org Message-ID: <1339526322337-4997996.post@n6.nabble.com> Subject: How is the most efficient way to know when a bundle is started? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello! In OSGI, the call to Bundle.start() is asynchronous. So when I issue the call, I have to code something to let me know when the Bundle is really started. The first thing that came to my mind is to create a polling process to check if the bundle is already started, but it is not the most efficient and quick way to achieve that. I need to know as soon as possible the moment when the bundle is started. I was thinking about listening to bundle start events and then filter to find my bundle start event. Is it possible? Is it efficient? How can I do it? Thanks in advance! Fabio -- View this message in context: http://apache-felix.18485.n6.nabble.com/How-is-the-most-efficient-way-to-know-when-a-bundle-is-started-tp4997996.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org