Hi JB, Actually I was meaning something a little different. Say I have an api bundle with an EchoService interface, and then an implemention bundle with two implementations, SimpleEchoService and ReverseEchoService. Each of these have the "service.exported.interfaces=*" property defined, plus a filter property, e.g. "path=/echo/simple" and "path=/echo/reverse". In my cluster I have two nodes each in their own group, each with cellar-dosgi installed. On node A I deploy both services and on node B I deploy the api plus a client. This client chooses the service via a filter, e.g. (path=/echo/simple). What I am seeing is that the client cannot find the service.
I'll happily throw some sample code up into a github gist if it'd help. Also, regarding KARAF-3980, I'm not sure what "LB policy" refers to, so I can't say if this is the same issue. Cheers, Gary On 18 October 2015 at 21:16, jbonofre [via Karaf] < ml-node+s922171n4043137...@n3.nabble.com> wrote: > Hi Gary, > > I guess that you mean on the cluster, having the same service deployed > on multiple nodes, right ? > > Even if you can use service properties to identify the service instance > on different nodes (in addition of the exported.service.interface one), > implicitly Cellar doesn't add additional properties. > It's something that I plan and that will be part of KARAF-3980. > > Regards > JB > > On 10/18/2015 08:30 PM, garyhodgson wrote: > > > Hi guys, > > > > Does cellar-dosgi handle multiple instances of a service, differentiated > via > > properties, i.e where they can be selected via a filter? > > > > When I publish a single service in node a, and call it from a client in > node > > b, everything works as expected. But if the service in node a has > multiple > > instances, and for example filtered by a path property (e.g. > > path=/echo/simple) then the client complains with the following: > "Missing > > dependencies: > > > (&(path=/echo/simple)(objectClass=com.examples.echo.service.api.EchoService))"" > > > > > Is there any special config I am missing, or is this functionality not > yet > > implemented? > > > > Cheers, > > Gary > > > > > > > > -- > > View this message in context: > http://karaf.922171.n3.nabble.com/Cellar-DOSGI-Services-with-multiple-instances-tp4043135.html > > Sent from the Karaf - User mailing list archive at Nabble.com. > > > > -- > Jean-Baptiste Onofré > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4043137&i=0> > http://blog.nanthrax.net > Talend - http://www.talend.com > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://karaf.922171.n3.nabble.com/Cellar-DOSGI-Services-with-multiple-instances-tp4043135p4043137.html > To unsubscribe from [Cellar-DOSGI] Services with multiple instances?, click > here > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4043135&code=Y29udGFjdEBnYXJ5aG9kZ3Nvbi5jb218NDA0MzEzNXw4NTU3ODE3OA==> > . > NAML > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://karaf.922171.n3.nabble.com/Cellar-DOSGI-Services-with-multiple-instances-tp4043135p4043139.html Sent from the Karaf - User mailing list archive at Nabble.com.