You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by devis76 <de...@flexvalley.com> on 2016/10/28 08:44:07 UTC

Service Singleton Callback

Hi,
i have a OSGI Activator that deploy a service on cluster.
What is the best approach to receive a callback when service was execute?  I
need callback to node that publish Singleton service.




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Service-Singleton-Callback-tp8583.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Service Singleton Callback

Posted by vkulichenko <va...@gmail.com>.
Hi,

There is no callback out of the box. However, you can probably utilize
custom events [1] for this. Use IgniteEvents.recordLocal(..) method to fire
an event that will indicate that service is started, and then subscribe for
this event as described in documentation. The listener will be your
callback.

[1] https://apacheignite.readme.io/docs/events

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Service-Singleton-Callback-tp8583p8596.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Service Singleton Callback

Posted by devis76 <de...@flexvalley.com>.
Thank you for your help



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Service-Singleton-Callback-tp8583p8606.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.