Thursday, 11 May 2017

How to connect to a vertx eventbus using hazelcast in node

I'm creating a cluster of applications that run on my server. I use Hazelcast-cluster in combination with VertX in java. now I would lite to extend the vertx eventbus into an NodeJs applicaion running on the same server.

Hazelcast is running in node and connecting correctly with the hazelcast members running on the JVM

var HazelcastClient = require('hazelcast-client').Client;
var Config = require('hazelcast-client').Config;
var config = new Config.ClientConfig();
config.networkConfig.addresses = [{host: '127.0.0.1', port: '5701'}];
var map = {};
HazelcastClient.newHazelcastClient(config)
    .then(function (hazelcastClient) {
        map = hazelcastClient.getMap("persons");
    });
});

can someone help me with the eventbus part ?!?!

Thanks



via Kasper Jan Mooijman

No comments:

Post a Comment