Re: QDox vs. Annotations

2009-08-14 Thread Carsten Ziegeler
Carl F. Hall wrote: Something else we just noticed with the docs annotations, if metatype is not specified, it defaults to false (docs are correct) but the description in the docs is misleading. It appears to have been copied from the JavaDoc bit. Also, what caused the default to be

Question about bundle class loader lifecycle

2009-08-14 Thread Holger Hoffstätte
Can someone shed a ray of light on when exactly a bundle's classloader is (supposedly) made eligible for GC? I'm working with native code and while it is not required to re- or unload my bundle, it would be nice to have a better grasp of potential lifecycle issues. Right now felix (on Windows)

Re: Question about bundle class loader lifecycle

2009-08-14 Thread Todor Boev
There is no well defined time. A class loader is garbage collected just like any other object. I.e. when there are no direct strong references to it. Objects refer to their reflective Class objects. And each Class object refers to the ClassLoader that *defined* it from raw bytes. When you

Using OBR in host application

2009-08-14 Thread Henrik Niehaus
Hi Felix users, I'm trying to use the OBR service in an application, which embeds felix. This is what I'm doing: 1. Start the framework in the host application: private void startOsgiFramework() { // Create a case-insensitive configuration property map. MapString, Object

Re: Question about bundle class loader lifecycle

2009-08-14 Thread Richard S. Hall
As with everything, stuff can only be garbage collected when there are no more references to it. Native is referenced from a ClassLoader. ClassLoaders are referenced from Classes. Classes are referenced from instances. So, you cannot have any references to any of these things from a bundle,

How does your development environment look like?

2009-08-14 Thread Henrik Niehaus
Hi, another question from an osgi beginner. How does your development environment look like? I'm currently using eclipse and the maven bundle plugin. My project is devided in several bundles / maven modules. Now, if I'm working on a bundle and want to test it, I have to run maven and afterwards

Re: Using OBR in host application

2009-08-14 Thread Richard S. Hall
Did you read about embedding Felix in here: http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html It talks about this very issue in Using Services Provided by Bundles... - richard On 8/14/09 11:28, Henrik Niehaus wrote: Hi Felix users, I'm trying to use the

Re: Using OBR in host application

2009-08-14 Thread Henrik Niehaus
Richard: Thanks for the link. I actually didn't find this page before. I'm wondering if it is accessible through the felix home page, because I was looking for an example like this clicking all the links under documentation... P.S.: I didn't subscribe to the list, so I didn't get your answer and

Re: Using OBR in host application

2009-08-14 Thread Richard S. Hall
On 8/14/09 14:04, Henrik Niehaus wrote: Richard: Thanks for the link. I actually didn't find this page before. I'm wondering if it is accessible through the felix home page, because I was looking for an example like this clicking all the links under documentation...

RE: How does your development environment look like?

2009-08-14 Thread Edelson, Justin
One thing I've been using a lot lately is the sling Maven plugin, specifically the install goal. I bind this to the Maven install phase. This allows me to start up Felix with the Web Console running and simply run 'mvn install' (or the corresponding menu item in Eclipse) and get my project built

Re: Using OBR in host application

2009-08-14 Thread Henrik Niehaus
Richard S. Hall schrieb: On 8/14/09 14:04, Henrik Niehaus wrote: Richard: Thanks for the link. I actually didn't find this page before. I'm wondering if it is accessible through the felix home page, because I was looking for an example like this clicking all the links under documentation...