Hi,

Are you sure that server sends a message only after a client is joined to
topology?
Please, check that ClusterGroup clientNodes is not empty before sending a
message to the topic.

On Fri, Jul 27, 2018 at 8:27 AM monstereo <mehmetozangu...@gmail.com> wrote:

> 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/
>

Reply via email to