Dan, you are confused by the coincidence that the bundle symbolic name is
the same as the interface name. In fact, the symbolic name can be anything
that uniquely identifies the bundle. There is no relation between the it and
the interface name.
For the OSGi services part, I'll respond to Simon's e-mail.
Thanks,
Raymond
--------------------------------------------------
From: "Dan Becker" <[email protected]>
Sent: Wednesday, March 11, 2009 9:28 AM
To: <[email protected]>
Subject: Re: [2.x] OSGi RFC 119 implemention using Tuscany Java SCA
Hi Raymond,
Fantastic job with both the presentation and the accompanying code.
I have one question. I see from the osgitest.composite that the service
interface is referenced by the following element:
<tuscany:implementation.osgi bundle="OSGiTestService"
bundleSymbolicName="org.apache.tuscany.sca.implementation.osgi.test.OSGiTestInterface"
/>
How is the bundle and bundleSymbolicName used to look up the bundle of the
component service? Is this information enough to find the required
service?
(P.S. Perhaps I missed the answer in the presentation, but this might be a
useful question and answer for your PDF.)
Raymond Feng wrote:
OSGi RFC 119 [2] specifies how OSGi services can be distributed using SCA
as the distribution software. We have seen user interests in Tuscany
community to implement RFC 119 using Java SCA [3].
I begin to look into this area recently. You can find a set of slides [1]
I put together to better understand the usage scenario and a high level
view of the work. The main idea is to use <implementation.osgi> to model
an OSGi bundle in SCA and provide remoting for OSGi services using SCA
bindings and intents. I have also started to port (from 1.x) and develop
the implemention.osgi module. The code is available at [4].
[1]
http://cwiki.apache.org/confluence/download/attachments/112304/RFC+119+with+Tuscany+SCA.pdf
[2]
http://www.osgi.org/Download/File?url=/download/osgi-4.2-early-draft2.pdf
[3] http://www.mail-archive.com/[email protected]/msg05305.html
[4]
http://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-osgi/
--
Thanks, Dan Becker