I want to send message to client nodes from server nodes, and client nodes
will take this message and print it.
Here is the server nodes
public static void main.... {
Ignite server = //start ignite with default config path
ClusterGroup clientNodes = server.cluster().forClients();
IgniteMessaging messaging = server.message(clientNodes);
messaging.send("ServerTopic", "hello");
}
Here is the client node
public static void main ...{
Ignite client = //start ignite client with default config
ClusterGroup clientNodes = client.cluster().forClients();
IgniteMessaging serverTopic = client.message(clientNodes);
consumerTopic.remoteListen("ServerTopic", (nodeId, message) ->{
System.out.println("Severr with id:" + nodeId +"\nsend this
message : " + message);
return true;
});
}
But I can not see the message on client nodes.
(I run client first, then run the server node(s))
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/