In your case you just need enable peer class loading. For java
configuration to use IgniteConfiguration#setPeerClassLoadingEnabled or for
xml:
<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<!-- Set to true to enable distributed class loading for examples,
default is false. -->
<property name="peerClassLoadingEnabled" value="true"/>
...
</bean>
If after it you will get the exception, please share it here and attach
your ignite configuration.
On Fri, Jan 6, 2017 at 5:28 PM, mark_balmer <
[email protected]> wrote:
> 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.
>