The registerResource call isn't primarily intended as a way for 1 bundle
to expose resources to be accessible to other bundles.
It's purpose is to register an alias as a sort of "mount point" which
allows resources in the bundle to be accessed by web browsers (i.e. HTTP
GET calls) using a URL e.g. http://ip:port/<some-root>/<alias>/<resource>
If you want a bundle to access resources in another bundle there are
other, better ways.
Regards
-- Rob Walker
On 05/12/2012 1:58 PM, Reto Bachmann-Gmür wrote:
Hello,
When resources are registered via the registerResources of HttpService the
specified name is (IIUC) a path within theresources of the caller, i.e.
what the caller would get invoking getClass().getResource(name). However
the HttpService is a service exposed by another bundle, how can this access
the resources in the caller (or know from which bundle it was invoked from)?
Thanks for helping me understand!
Reto
--
Ascert - Taking systems to the edge
[email protected]
+27 21 300 2028 ext 5119
www.ascert.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]