So i'm trying to follow the service example at
http://apacheignite.gridgain.org/docs/service-example which is a
MyCounterServiceImpl service, not the NodeFilter one.
Under the section Service Deployment, it shows some code for deploying it:
// Cluster group which includes all caching nodes.
ClusterGroup cacheGrp = ignite.cluster().forCache("myCounterService");
// Get an instance of IgniteServices for the cluster group.
IgniteServices svcs = ignite.services(cacheGrp);
// Deploy per-node singleton. An instance of the service
// will be deployed on every node within the cluster group.
svcs.deployNodeSingleton("myCounterService", new MyCounterServiceImpl());
Do I put this code in another class under main() ? If so, is this deployment
class meant to be part of the jar? I apologise in advance if this doesnt
make sense, I'm fairly new to java!
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Java-Service-Deployment-tp9933p9935.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.