ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pim D <pim.dorrest...@ns.nl>
Subject Re: Serialization problem when combining Spring boot (hateoas) with Ignite
Date Wed, 31 Jan 2018 09:21:05 GMT
Hi Amir,


Regarding your questions:
1) Clients are not able to communicatie with the nodes in the grid, none of
the ignite messages can be deserialized by the client.
2) The project is to big to share for reproduction, but I try to provide the
relevant parts.
Server(s):

    @Bean
    @Scope(BeanDefinition.SCOPE_SINGLETON)
    @DependsOn(value = "playerScoreDS")
    public Ignite getIgnite() throws IgniteCheckedException {
        Map<String,Object> attr = new HashMap<>();
        attr.put(ClusterUtils.GROEP,groepen);
        FlipperkastClusterConfiguratie conf = new
FlipperkastClusterConfiguratie();
        conf.setUserAttributes(attr);
        conf.setAddresses(servers);
        conf.setLifecycleBeans(
                new NodeCacheEventListener()
                ,new PlungerActivator()
                ,new GootActivator()
                ,new WaxPhantomActivator()
                ,new PescadoDiabolicoActivator()
                ,new BackboxActivator()
                ,new BackboxAccessActivator()
        );
        return IgniteSpring.start(conf,context);
    }

Client:

    @Bean
    public IgniteConfiguration getIgniteConfiguratie() {
        FlipperkastClusterConfiguratie conf = new
FlipperkastClusterConfiguratie(); // (has peerClassloading disabled and the
log4j2 logger and Ignite Home set to the folder where the application is
started)
        conf.setIgniteInstanceName(naam);
        conf.setClientMode(true);
        Map<String,List&lt;String>> attr = new HashMap<>();
        attr.put(ClusterUtils.GROEP,groepen);
        conf.setUserAttributes(attr);
        conf.setAddresses(servers);
        return conf;
    }
    
    @Bean
    public Ignite getIgnite() throws IgniteCheckedException {
        if (client == null) {
            synchronized (this) {
                if (client == null) {
                    FlipperkastClusterConfiguratie conf = new
FlipperkastClusterConfiguratie();
                    conf.setIgniteInstanceName(naam);
                    conf.setClientMode(true);
                    Map<String, List&lt;String>> attr = new HashMap<>();
                    attr.put(ClusterUtils.GROEP, groepen);
                    conf.setUserAttributes(attr);
                    conf.setAddresses(servers);
                    client = IgniteSpring.start(conf, context);
                }
            }
        }
        return client;
    }

3) The project is to big to share for reproduction.
It requires various frameworks.





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message