Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F248C7B8 for ; Mon, 17 Mar 2014 14:46:15 +0000 (UTC) Received: (qmail 85634 invoked by uid 500); 17 Mar 2014 14:46:09 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 85549 invoked by uid 500); 17 Mar 2014 14:46:08 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 85230 invoked by uid 99); 17 Mar 2014 14:46:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2014 14:46:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tech@mxe.fr designates 188.165.56.163 as permitted sender) Received: from [188.165.56.163] (HELO mo7.mail-out.ovh.net) (188.165.56.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2014 14:46:00 +0000 Received: from mail379.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 12EF1FF88E6 for ; Mon, 17 Mar 2014 15:46:31 +0100 (CET) Received: from ssl0.ovh.net (localhost [127.0.0.1]) by mail379.ha.ovh.net (Postfix) with ESMTP id E6DA280058 for ; Mon, 17 Mar 2014 15:48:20 +0100 (CET) Received: from rev-18-253-20.isp3.alsatis.net ([37.1.253.18]) by ssl0.ovh.net with HTTP (HTTP/1.1 POST); Mon, 17 Mar 2014 15:48:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 17 Mar 2014 15:48:20 +0100 From: Natalius To: user@karaf.apache.org Subject: Re: cellar and service properties In-Reply-To: <532709E9.1090902@nanthrax.net> References: <90fde534f05db450eece4aeadd478e64@nanthrax.net> <5322DA7F.10509@nanthrax.net> <0393e8d0590adf48557698e86873f61f@mxe.fr> <0a7bec05f11b9e2dcd0f73c72b9ec1d1@nanthrax.net> <25815b31df99a328df8dc7d559550c84@mxe.fr> <532704E0.8010805@nanthrax.net> <532709E9.1090902@nanthrax.net> Message-ID: X-Sender: tech@mxe.fr User-Agent: Roundcube Webmail/0.9.5p X-Originating-IP: 37.1.253.18 X-Ovh-Tracer-Id: 807270237269857290 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejuddrvdejucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-Virus-Checked: Checked by ClamAV on apache.org Karaf version : 2.3.4 Cellar version : 2.3.2 Le 17.03.2014 15:42, Jean-Baptiste Onofré a écrit : > Catcha, > > It's clear now. What's the version of Karaf and Cellar ? > > Regards > JB > > On 03/17/2014 03:40 PM, Natalius wrote: >> Ok, here are the steps I followed: >> 1. I created two nodes (node1 and node2) ; >> 2. I installed Cellar and Cellar-DOSGi on the two nodes ; >> 3. I disabled the bundle sync on the two nodes ; >> 3. I installed a bundle creating a service on the node2. I use an >> implementation of the interface ManagedServiceFactory ; >> 4. I installed a bundle consuming the service on the node1. I use a >> ServiceTracker for this and I would like to filter by service >> properties >> "reference.getPropertyKeys()". >> >> Currently, my bundles are deployed with success, I see my service with >> command "service-list" and I see the content of my cfg file with >> command >> "config:list" on all nodes. >> >> This helps you to understand my situation ? >> >> >> Le 17.03.2014 15:21, Jean-Baptiste Onofré a écrit : >>> It's what I said next week: you are miunderstanding the differences >>> between config and service properties. >>> >>> Please, try to explain cleanly what you want to do: >>> >>> - could you share the bundle exposing the service and the properties >>> on the service ? >>> - same on bundle using service >>> >>> I guess you use Cellar DOSGi, right ? >>> >>> Providing your step by step usage may help me. >>> >>> Thanks, >>> Regards >>> JB >>> >>> On 03/17/2014 03:18 PM, Natalius wrote: >>>> Ok, I filters the sync but the properties are always bad. When I use >>>> the >>>> command config:list I see my properties on all nodes but when I use >>>> the >>>> instruction reference.getPropertyKeys() I don't see my properties. >>>> Why ? >>>> I don't understand >>>> >>>> Le 14.03.2014 16:30, jb@nanthrax.net a écrit : >>>>> Cellar doesn't sync the deploy folder. >>>>> >>>>> The cfg file should go into the etc folder (and it will be sync). >>>>> To filter the sync, you can use the blacklist/whitelist (in >>>>> etc/org.apache.karaf.cellar.groups.cfg). >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> On 2014-03-14 16:20, Natalius wrote: >>>>>> Le 14.03.2014 11:31, Jean-Baptiste Onofré a écrit : >>>>>> No I create a cfg file in the deploy folder (not etc) and I not >>>>>> see >>>>>> the config on all nodes because my nodes are not in the same >>>>>> group. Is >>>>>> it a problem ? I would libe deploy my service only on particular >>>>>> nodes >>>>>> and use it on another nodes. >>>>>> >>>>>>> Hi Fédéric, >>>>>>> >>>>>>> I think you mix service properties and configuration. >>>>>>> >>>>>>> Cellar config sync the configuration (from configadmin), only >>>>>>> some >>>>>>> properties are filtered (for instance the felix.fileinstall >>>>>>> properties >>>>>>> as the location may be different on nodes). >>>>>>> >>>>>>> So it should work straight forward. >>>>>>> >>>>>>> Just to be sure to understand: you create a cfg file in the etc >>>>>>> folder >>>>>>> on one node. So you should be able to see the config (config:list >>>>>>> "(service.pid=yourconfig)" on all nodes. Is it the case ? >>>>>>> Do you see the cfg file created on the different nodes ? >>>>>>> The nodes should be in the same cluster group. >>>>>>> >>>>>>> Regards >>>>>>> JB >>>>>>> >>>>>>> On 03/13/2014 05:16 PM, Frédéric POULET wrote: >>>>>>>> Yes, I use a configuration file and a class which implements >>>>>>>> ManagedServiceFactory. >>>>>>>> >>>>>>>> -----Message d'origine----- >>>>>>>> De : jb@nanthrax.net [mailto:jb@nanthrax.net] >>>>>>>> Envoyé : jeudi 13 mars 2014 17:12 >>>>>>>> À : user@karaf.apache.org >>>>>>>> Objet : Re: cellar and service properties >>>>>>>> >>>>>>>> Hi Frédéric, >>>>>>>> >>>>>>>> What do you mean by "personal properties" ? >>>>>>>> You mean stuff like on DOSGi services ? >>>>>>>> >>>>>>>> Regards >>>>>>>> JB >>>>>>>> >>>>>>>> On 2014-03-13 17:10, Frédéric POULET wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I can't see the personal properties of my remote services, why >>>>>>>>> ? >>>>>>>>> >>>>>>>>> Thank you for your help