You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by conejo <lo...@gmail.com> on 2016/03/11 10:40:09 UTC

Cellar dosgi

Is it possible to send notifications of disconnect service? I have the
following scenario:
Node1: dosgi service
Node2: client bundle

I would like to notify the node2 disconnection of service on node1 (eg when
node1 is disconnected or updating bundles that implement the service).



--
View this message in context: http://karaf.922171.n3.nabble.com/Cellar-dosgi-tp4045758.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Cellar dosgi

Posted by conejo <lo...@gmail.com>.
Hi. Thanx.

Any workaround?

I've also noticed that called twice in the node1 bind method (perhaps to
register the service on the node and register it in the cluster?)



--
View this message in context: http://karaf.922171.n3.nabble.com/Cellar-dosgi-tp4045758p4045763.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Cellar dosgi

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
OK, understood. It's an enhancement to do. I will create a Jira about that.

Regards
JB

On 03/11/2016 11:03 AM, conejo wrote:
> Hi, I'm using version 4.0.0 of cellar.
> What I really want is to know when the service is not available on the
> client side. I'm using reference-listener but unbind methods are not called
> on the client side when the node1 eliminates the service, or even when you
> stop node1.
> Indeed, if I do cluster: service-list, the service does not appear but the
> client bundle, which will be linked to the service proxy, I suppose, is
> never notified that the service is no longer available.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Cellar-dosgi-tp4045758p4045760.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Cellar dosgi

Posted by conejo <lo...@gmail.com>.
Hi, I'm using version 4.0.0 of cellar.
What I really want is to know when the service is not available on the
client side. I'm using reference-listener but unbind methods are not called
on the client side when the node1 eliminates the service, or even when you
stop node1.
Indeed, if I do cluster: service-list, the service does not appear but the
client bundle, which will be linked to the service proxy, I suppose, is
never notified that the service is no longer available.



--
View this message in context: http://karaf.922171.n3.nabble.com/Cellar-dosgi-tp4045758p4045760.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Cellar dosgi

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

What Cellar version do you use ?

We did some improvement there.

By notification, you mean you want to be informed ? Or you just want 
that the service doesn't appear in the cluster:services list ?

Regards
JB

On 03/11/2016 10:40 AM, conejo wrote:
> Is it possible to send notifications of disconnect service? I have the
> following scenario:
> Node1: dosgi service
> Node2: client bundle
>
> I would like to notify the node2 disconnection of service on node1 (eg when
> node1 is disconnected or updating bundles that implement the service).
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Cellar-dosgi-tp4045758.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com