On Wed, Feb 18, 2009 at 7:39 PM, Sahoo <[email protected]> wrote:
> file:bundles/mybundle.jar is not a hierarchical URI (more details at
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/URI.html). I have not
> looked at Felix code to see how it interprets such a URI, but I assume it
> parses it on its own and makes some assumption about the format of the URI
> it can handle. I say this because if you try to create a File object out of
> a non-hierarchical URI by calling new File(aNonHierarchicalURI), you will
> get "java.lang.IllegalArgumentException: URI is not hierarchical." On the
> other hand,...

Yes, you are right, file:bundles/mybundles.jar is not hierarchical.
However the behavior of the system is a bit inconsistent, since it is
possible to install and run a bundle in a way that makes the
fileinstaller not working.
Do you know if it's a inconsistency of the specification (osgi allows
opaque URI vs hierarchichal URI only in java), or maybe is just a
Felix design choice?


>> 2)[..]
> This behavior should not have changed. It is essentially the same: we
> install in one round and then start all installed bundles in the same order
> as they are installed. The order in which we install depends on the order in
> which they are stored in the map and hence unpredictable. If your bundle
> depends on another bundle to be started, should you not be using a service
> tracker or something like that?

I haven't written that bundle, let me check today.

-- 
Filippo Diotalevi

Reply via email to