Hi,

Tuscany supports OSGi bundle contributions which are currently loaded using
the Apache Felix OSGi runtime by default. These contributions can contain
composite files and other meta-data which are  loaded using OSGi and
passed around as URLs. Tests for OSGi contributions are run under Felix with
urlhandlers set, so we dont have any trouble with bundle:// URLs returned by
resources located using Felix (Tuscany calls openConnection and openStream
on these urls).

Are the Eclipse RCP apps run without an URL stream handler to handle
bundleresource:// URLs?


Thank you...

Regards,

Rajini

On 11/23/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I don't think it is a bug in eclipse (just from the likeliness point of
> view). What I do not know is, what Tuscany does with the URLs returned.
> If they would just open a stream on the URL, there would be no issue at
> all, because the URls are backed by handlers supporting opening the
> streams.
>
> If on the other they convert the URls to Strings and later want to
> create URLs from the strings again, they are hosed. But I assume, this
> is then a bug/issue in Tuscany rather than in Eclipse. In fact, they
> might run into the same troubles with Felix or just about any
> framework...
>
> Regards
> Felix
>
> Am Freitag, den 23.11.2007, 08:55 +0000 schrieb Rob Walker:
> > Peter
> >
> > On a  very quick read thru this - tbh - it sounds like a bug/feature of
> > their OSGi implementation.
> >
> > I'm 99% sure we use classloader getResource() calls under Felix, and the
> > felix classloaders correctly resolve them to bundle URL references which
> > can then be used in a normal way. Pretty sure you need the URL handler
> > feature enabled, since I think as Jason points out the URL returned has
> > a custom protocol type that the specific framework implementation needs
> > to handle.
> >
> > A possible alternative may be for them to use getResourceAsStream() if
> > viable - since this will resolve the URL and open it for them.
> >
> > Regards
> >
> > -- Rob
> >
> > Peter Kriens wrote:
> > > I noticed this mail:
> > >
> > >
> http://mail-archives.apache.org/mod_mbox/ws-tuscany-user/200711.mbox/[EMAIL 
> PROTECTED]
> > >
> > > This is from the Tuscany project and seem to struggle with resource
> > > handling in OSGi. Anybody knows Jason Clark and can discuss this with
> > > him? As far as I can see, it can all be done with the bundle methods
> > > or by creating new URLs.
> > >
> > > Kind regards,
> > >
> > >    Peter Kriens
> > >
> > >
> >
>
>

Reply via email to