Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-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 375D4C207 for ; Thu, 11 Jul 2013 05:38:19 +0000 (UTC) Received: (qmail 94948 invoked by uid 500); 11 Jul 2013 05:38:18 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 93776 invoked by uid 500); 11 Jul 2013 05:38:07 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 93761 invoked by uid 99); 11 Jul 2013 05:38:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jul 2013 05:38:05 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of irisdingbj@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jul 2013 05:38:01 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Ux9ZB-0006kA-0H for dev@cxf.apache.org; Wed, 10 Jul 2013 22:37:21 -0700 Date: Wed, 10 Jul 2013 22:37:21 -0700 (PDT) From: iris ding To: dev@cxf.apache.org Message-ID: <1373521040979-5730582.post@n5.nabble.com> Subject: extensions dynamically added/removed from exited bus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org There are two scenarios: 1. Add Extensions to existed bus a. have 5 cxf jars enabled b. create bus with the extensions defined in the 5 cxf jars(META-INF/bus-extension.txt) c. Enable the 6th cxf jars Currently, in CXF the new extensions defined in the 6th cxf jar can not tak= e effect in the old bus which was created before(eg=EF=BC=9A the bus created = in above step 2). To solve this problem, we need to make some change in=20 rt\core\src\main\java\org\apache\cxf\bus\osgi\CXFExtensionBundleListener.ja= va rt\core\src\main\java\org\apache\cxf\bus\osgi\CXFActivator.java rt\core\src\main\java\org\apache\cxf\bus\extension\ExtensionManagerImpl.jav= a After that the problem solved. But there is the 2nd scenario: 2. Remove extensions from existed bus a. have 5 cxf jars enabled b. create bus with the extensions defined in the 5 cxf jars(META-INF/bus-extension.txt) c. Remove/Disable one of the 5 cxf jar, eg: the 5th cxf jar. In this scenario, we need to remove the extensions defined in the 5yh cxf jar from the existed bus.=20 But I can not find a suitable way to do this. Can somebody please shed some lights on this? Many Thanks! Iris Ding -- View this message in context: http://cxf.547215.n5.nabble.com/extensions-dy= namically-added-removed-from-exited-bus-tp5730582.html Sent from the cxf-dev mailing list archive at Nabble.com.