Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 54518 invoked from network); 22 Feb 2007 11:22:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2007 11:22:06 -0000 Received: (qmail 26471 invoked by uid 500); 22 Feb 2007 11:22:14 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 26385 invoked by uid 500); 22 Feb 2007 11:22:13 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 26376 invoked by uid 99); 22 Feb 2007 11:22:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 03:22:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of oisin.hurley@iona.com designates 62.221.12.33 as permitted sender) Received: from [62.221.12.33] (HELO emea-smg1.iona.com) (62.221.12.33) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 03:22:02 -0800 Received: from emea-ems1.ionaglobal.com (dutec.ie [10.2.1.125]) by emea-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id l1MCJ0Vg027450 for ; Thu, 22 Feb 2007 12:19:00 GMT Received: from [10.5.2.179] ([10.5.2.179]) by emea-ems1.ionaglobal.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 22 Feb 2007 11:21:37 +0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <7b774c950702211130u358ea65ekf01886f633543458@mail.gmail.com> References: <7b774c950702210857u6321b09fh9c7c1db2f25c287f@mail.gmail.com> <799097F7-E22E-4A51-9E7E-5DA593A37025@iona.com> <5C7752CCB00C3A47A70D5C4204A360B20BD61101@CAQ010AVEX1U.sv.avaya.com> <7b774c950702211017o20383b50x335585b6b032a94a@mail.gmail.com> <5C7752CCB00C3A47A70D5C4204A360B20BD6125F@CAQ010AVEX1U.sv.avaya.com> <7b774c950702211130u358ea65ekf01886f633543458@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2520E161-77F1-483C-845F-A8D897189A29@iona.com> Content-Transfer-Encoding: 7bit From: Oisin Hurley Subject: Re: Problems embedding CXF in Eclipse Date: Thu, 22 Feb 2007 11:21:01 +0000 To: cxf-dev@incubator.apache.org X-Mailer: Apple Mail (2.752.3) X-OriginalArrivalTime: 22 Feb 2007 11:21:37.0648 (UTC) FILETIME=[9E10D700:01C75673] X-Virus-Checked: Checked by ClamAV on apache.org > I have no idea how to use the solution though, as I have no idea > where to > get a Bundle to pass into the constructor. This make sense to > anyone else? When you construct an OSGi bundle and install it into an OSGi "container", you should provide an activation class that is used to adapt your code to the lifecycle facilities provided by OSGi. You get the Bundle instance from the BundleContext that is passed into the start() call: public CeltixBundleActivator implements BundleActivator { private Bundle myBundle; public void start(BundleContext bc) throws Exception { myBundle = bc.getBundle(); } public void stop(BundleContext bc) throws Exception { .... } public Bundle getBundle() { return myBundle; } } BTW, Dennis, I'm a member of the OSGi Enterprise Expert Group, and really interested in distributed OSGi in general and CXF+OSGi in particular. Would you be interested in sharing more about your work? We might be able to help out! cheers --oh