Re: Configuration Admin service example?

2011-04-28 Thread Christian Schneider
Hi Cristiano, I already used the config admin service and fileinstall from Karaf in an Eclipse RCP app it works quite well. At that time blueprint was not ready so we used spring dm then. It is a little more work than in karaf as you have to care about using all the right bundles yourself but

Re: Configuration Admin service example?

2011-04-28 Thread Cristiano Gavião
Hi Andreas, Yep, I found the pax-exam2 site... and I've downloaded it lessons projects. Sounds very nice... But I could see it have support for Equinox and Felix containers, using OSGi Launcher API. It mean that I couldn't use it to do tests with a karaf point of view, unless I could install all

Re: Configuration Admin service example?

2011-04-28 Thread Andreas Pieber
typically the best way (imho at least :)) is using pax exam (2). thisthis will fire up an entire osgi app letting you check on various parts ofof your application such as blueprint confug, active srrvices,... kind regards, Andreas p.s.: Written from my mobile phone, please excuse half sentences a

Re: Configuration Admin service example?

2011-04-28 Thread Cristiano Gavião
Hi Christian, I researched more info and blueprint seams to be the best way to follow because we could inject beans too. I made a small test with it under Karaf and it works very well... We are implement a server side using karaf with felix but we can't use karaf on client side because it is

Re: Configuration Admin service example?

2011-04-26 Thread Bertrand Delacretaz
Hi, On Tue, Apr 26, 2011 at 4:46 PM, Cristiano Gavião wrote: > ...I found maven-scr-plugin annotation very interesting and easy... > > Now I'm trying figuring out how I could inject properties from a config file > on the service using DS... The Felix file installer ( http://felix.apache.org/site

Re: Configuration Admin service example?

2011-04-26 Thread Christian Schneider
Hi Cristiano, I have most experience in spring dm. Currently spring is the most comprehensive solution. The problem with spring dm is that you need to import any package the your spring config defines into your bundle. This is far from ideal but it works. I have also some experience with blu

Re: Configuration Admin service example?

2011-04-26 Thread Cristiano Gavião
Hi Bertrand, I found maven-scr-plugin annotation very interesting and easy... Now I'm trying figuring out how I could inject properties from a config file on the service using DS... thanks Cristiano 2011/4/26 Bertrand Delacretaz > Hi, > > On Tue, Apr 26, 2011 at 12:03 AM, Cristiano Gavião >

Re: Configuration Admin service example?

2011-04-26 Thread Cristiano Gavião
Hi Christian, Actually, I would like a way to dynamically setup my app service using Configuration admin service and able its use on both equinox or felix/karaf. I could see that Declarative Services is out of box on equinox while Karaf has Blueprint out of box. Now I'm investigating if would b

Re: Configuration Admin service example?

2011-04-26 Thread Bertrand Delacretaz
Hi, On Tue, Apr 26, 2011 at 12:03 AM, Cristiano Gavião wrote: > I would like to use Configuration Admin Service with Declared Service. > But I > couldn't find yet a updated tutorial with a good example If your goal is to create Declarative Services that have configuration parameters, th

Re: Configuration Admin service example?

2011-04-26 Thread Christian Schneider
Hi Cristiano, the question is what framework should the example use. Should it be plain osgi, spring dm or blueprint? Christian Am 26.04.2011 00:03, schrieb Cristiano Gavião: Hi, I would like to use Configuration Admin Service with Declared Service. But I couldn't find yet a updated tutor

Configuration Admin service example?

2011-04-25 Thread Cristiano Gavião
Hi, I would like to use Configuration Admin Service with Declared Service. But I couldn't find yet a updated tutorial with a good example. Someone knows any to point me? thanks Cristiano - To unsubscribe, e-mail: users-unsu