/commented by alexey goncharuk/

Adam,

Using isLocal method inside a filter may be error-prone because the result
of filter evaluation depends on the node on which this filter gets
evaluated.

Here is the code snippet that deploys a service only on server nodes:

*/ServiceConfiguration svcCfg = new ServiceConfiguration();

svcCfg.setService(new MyService());
svcCfg.setNodeFilter(CacheConfiguration.SERVER_NODES);
svcCfg.setMaxPerNodeCount(1);

ignite.services().deploy(svcCfg);/*

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Do-services-run-on-client-nodes-tp142p145.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to