Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Guillaume Nodet
I actually find the idea very interesting. For some time I was considering writing an LDAP back-end but never got the time to actually do it. If you intend to contribute it, it might make sense to raise a JIRA and attach it there. I actually have hardly used zookeeper, so I have a few questions

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Leen Toelen
Hi, there are several uses cases for zookeeper, but my two goals are - publish a service existence and parameters in zookeeper so other services can find it (mostly an ephemeral znode is used here) - configure service parameters centrally I don't think zookeeper has the idea of default values,

Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Norbert Somlai
Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep the reference and the configuration at the same place. Something like reference

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Richard S. Hall
On 6/2/10 7:58, Norbert Somlai wrote: Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep the reference and the configuration at the same place.

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Justin Edelson
On 6/2/10 7:58 AM, Norbert Somlai wrote: Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep the reference and the configuration at the same place.

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Norbert Somlai
I would like to configure a component instance from the _referring_ component, not just provide default properties for a component. Where can I specify the properties in the referrers component.xml? The DTD does not seem to allow a property element in a reference element. Norbert Richard S.

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Richard S. Hall
On 6/2/10 9:55, Norbert Somlai wrote: I would like to configure a component instance from the _referring_ component, not just provide default properties for a component. Where can I specify the properties in the referrers component.xml? The DTD does not seem to allow aproperty element in

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Richard S. Hall
Just wondering, rather than creating a bridge, wouldn't it make more sense to just create a new Configuration Admin implementation that uses Zookeeper as its back end? Or is there some other benefit to creating a bridge? - richard On 6/2/10 5:17, Leen Toelen wrote: Hi, there are several

Automatic bundle installation with Maven

2010-06-02 Thread Jan Goyvaerts
I've vainly been trying to use Felix' bundle plugin to install/deploy a bundle Maven artifact to the Felix repository in Glassfish. In the end I've used the Ant run plugin to copy the bundle jar to the deployment directory: profile idinstall-on-local-glassfish/id

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Guillaume Nodet
Wouldn't that be a problem to have ConfigAdmin pushing config updates automatically ? The current implementation has a pluggable backend storage, but it can't be used to push changes. Maybe if the interface of the store is enhanced, it would be more usable. On Wed, Jun 2, 2010 at 16:24, Richard

Re: Automatic bundle installation with Maven

2010-06-02 Thread Roman Roelofsen
Hi Jan, I wrote a small utility bundle (TBB) a while ago to simplify this code-test cycle. Whenever a bundle changes in your build directory, TBB will update it in your running target OSGi framework as well. The only documentation I have is a blog post:

Re: Automatic bundle installation with Maven

2010-06-02 Thread Guillaume Nodet
fileinstall supports exploded bundles, so if you create a simlink to your target/classes folder (when using maven), the bundle should be updated automatically if any class file change inside. On Wed, Jun 2, 2010 at 16:35, Roman Roelofsen r.roelof...@prosyst.com wrote: Hi Jan, I wrote a small

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Richard S. Hall
On 6/2/10 10:29, Guillaume Nodet wrote: Wouldn't that be a problem to have ConfigAdmin pushing config updates automatically ? I don't understand this question. The current implementation has a pluggable backend storage, but it can't be used to push changes. Maybe if the interface of

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Guillaume Nodet
On Wed, Jun 2, 2010 at 16:50, Richard S. Hall he...@ungoverned.org wrote: On 6/2/10 10:29, Guillaume Nodet wrote: Wouldn't that be a problem to have ConfigAdmin pushing config updates automatically ?  I don't understand this question. I mean the specs does not really assume that

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Richard S. Hall
On 6/2/10 10:56, Guillaume Nodet wrote: On Wed, Jun 2, 2010 at 16:50, Richard S. Hallhe...@ungoverned.org wrote: On 6/2/10 10:29, Guillaume Nodet wrote: Wouldn't that be a problem to have ConfigAdmin pushing config updates automatically ? I don't understand this

Re: Bridge between zookeeper and OSGI configuration admin

2010-06-02 Thread Felix Meschberger
Hi, On 02.06.2010 16:29, Guillaume Nodet wrote: Wouldn't that be a problem to have ConfigAdmin pushing config updates automatically ? The current implementation has a pluggable backend storage, but it can't be used to push changes. Maybe if the interface of the store is enhanced, it would

Re: Automatic bundle installation with Maven

2010-06-02 Thread Felix Meschberger
Hi, And another tool in the chain: If you have the Felix Web Console installed, the Maven Sling Plugin [1] can be used to automatically deploy bundles. Regards Felix [1] http://sling.apache.org/site/sling.html On 02.06.2010 16:25, Jan Goyvaerts wrote: I've vainly been trying to use Felix'

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Felix Meschberger
Hi, On 02.06.2010 13:58, Norbert Somlai wrote: Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep the reference and the configuration at the same

Bundle Wiring

2010-06-02 Thread Jens Lauterbach
Hello, I am trying to figure out how two bundles are wired together. Bundles can import and export packages. As far as I can tell from diving into the code the importing and exporting packages are wired together (org.apache.felix.framework.resolver.WireImpl) and not the bundles itself. If a

JAXB errors in Felix

2010-06-02 Thread Larry Touve
OK, I've read all the previous posts and tried seven different ways to Sunday to get this to work. I've seen a fair number of posts with the same problem, but none of the recommendations seems to work for me. I'm trying to unmarshal some XML into java objects. My code works fine in a

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Justin Edelson
On 6/2/10 12:22 PM, Felix Meschberger wrote: Hi, On 02.06.2010 13:58, Norbert Somlai wrote: Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Norbert Somlai
That's correct. I would like to implement a generic service, for example a database connection handler and instantiate preconfigured instances of it without programming. Using my previous pseudocode example: component.xml of bundle 1: reference interface=com.acme.IDatabase bind=setDB

Re: Bundle Wiring

2010-06-02 Thread Jens Lauterbach
Thank you for your answer Richard. The reason why I ask this question is that I am working on my thesis about OSGi right now. Part of this thesis involves the whole class loading process and I just wanted to provide some more information to the reader than simply saying, that the OSGi

Re: Bundle Wiring

2010-06-02 Thread Richard S. Hall
On 6/2/10 14:56, Jens Lauterbach wrote: Thank you for your answer Richard. The reason why I ask this question is that I am working on my thesis about OSGi right now. Part of this thesis involves the whole class loading process and I just wanted to provide some more information to the reader

Re: Bundle Wiring

2010-06-02 Thread Jens Lauterbach
Thank you for pointing that out! I'll incorporate that in my remarks. Kind regards Jens On 02.06.2010, at 21:09, Richard S. Hall wrote: On 6/2/10 14:56, Jens Lauterbach wrote: Thank you for your answer Richard. The reason why I ask this question is that I am working on my thesis about

bundle cache version directories

2010-06-02 Thread Matt Tennant
Hi all, I have a question about the versionX.X directories inside the Felix bundle cache. I am using Felix 2.0.0, and I often see something like the following in my bundle cache directory: ls -l bundle0 bundle1 ... cd bundle0 ls -l version0.1 version0.0 bundle.location