OSGI-ification of resource finding

2008-06-12 Thread Kass, Samuel-P58051
I'm investigating OSGI-ifying a large codebase, and am trying to pin down how we're going to do resource loading. At the bottom of this message is a bit of code that's called many times in the codebase. It can take anything from a filename to a URL string to a resource path, and turn it into a ca

Is it possible to get a bundle from a path?

2008-06-12 Thread Mathieu Plourde
Is it possible to get a bundle from a path? Like if I have a file named testbundle.jar. Is it possible to get a bundle object from the path of the file? Thanks.

Re: Start / Install - Felix Bundle

2008-06-12 Thread Stuart McCulloch
2008/6/12 Daniel Veljjanoski <[EMAIL PROTECTED]>: > Hi Richard, > > Thanks a lot for your answer, it work fine for me but there is two > conditions : > > reference:file:/path/to/exploded/jar > >1. > > The folder named "jar" in the examle above MUST contains > META-INF/MANIFEST.MF That

Re: Start / Install - Felix Bundle

2008-06-12 Thread Daniel Veljjanoski
Hi Richard, Thanks a lot for your answer, it work fine for me but there is two conditions : reference:file:/path/to/exploded/jar 1. The folder named "jar" in the examle above MUST contains META-INF/MANIFEST.MF 2. I have changed the Felix.java : *private* BundleActivator

Re: Start / Install - Felix Bundle

2008-06-12 Thread Richard S. Hall
You can install a reference to an exploded bundle JAR directory using that syntax: reference:file:/path/to/exploded/jar -> richard Daniel Veljjanoski wrote: Hi, Is it possible to have a package (Folder) as a bundle ( NOT jar file)? Something like the line below ( in the felix config fi

Re: Unresolved package in bundle

2008-06-12 Thread Richard S. Hall
If javax.speech.synthesis is on the system class path, you should just be able to edit the org.osgi.framework.system.packages property in config.properties, like you mention below. You do not need to put the path to the package, though, just add the package name to this property. -> richard M

Re: Wait for services to be fully registered?

2008-06-12 Thread Richard S. Hall
I guess I cannot understand why you would want to keep old test cases that are no longer applicable to the new architecture of your system...makes more sense to change the test cases to me. However, if you really want to make sure everything starts before your GUI, you can put all of your serv