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 EAA8B10D77 for ; Tue, 9 Jul 2013 14:19:34 +0000 (UTC) Received: (qmail 55758 invoked by uid 500); 9 Jul 2013 14:19:34 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 55659 invoked by uid 500); 9 Jul 2013 14:19:32 -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 55632 invoked by uid 99); 9 Jul 2013 14:19:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 14:19:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 14:19:27 +0000 Received: from alf.nabble.com ([192.168.236.21]) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UwYkF-0002cU-Mh for users@felix.apache.org; Tue, 09 Jul 2013 07:18:19 -0700 Date: Tue, 9 Jul 2013 07:18:04 -0700 (PDT) From: Roland To: users@felix.apache.org Message-ID: <1373379484676-5004254.post@n6.nabble.com> In-Reply-To: <20110628031944.94FEDFC@athena.apache.org> References: <20110624105508.E4856816021@nike.apache.org> <20110627034633.BFA3A816021@nike.apache.org> <20110628031944.94FEDFC@athena.apache.org> Subject: Re: Why OSGI Configuration is bound to a admin bundle temporary? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi, I have a similar issue. I get the below debug output if I register the service and the parameter "properties" of the callback-function ManagedService::updated() is null. If I call Configuration::update() no event is fired. No SynchronousConfigurationListeners to send {0} event to. public void start(BundleContext context) throws NullPointerException { bundlecontext = context; new Thread() { public void run() { ... MyClass ctrl = new MyClass(); Dictionary properties = new Hashtable(); properties.put(Constants.SERVICE_PID, MyClass.class.getName()); String[] classnames = {ManagedService.class.getName(), MyClass.class.getName()}; rs = bundlecontext.registerService(classnames, ctrl, properties); ... configuration = configAdmin.createFactoryConfiguration(MyClass.class.getName(), null); configuration.update(properties); } }.start(); } Does anyone have an idea or a suggestion? Thanks in advance! Roland -- View this message in context: http://apache-felix.18485.x6.nabble.com/OSGI-Configuration-cannot-take-effect-immediately-tp4833849p5004254.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