1 Reply Latest reply on Mar 27, 2014 8:31 AM by Paul Ferraro

    Cluster of Wildfly and websocket

    Domenico Briganti Newbie

      Hello,

        I would like to create a kind of instant messaging service using websocket with a cluster of Wildfly.

      Each client is connects to a server and remains connected for the duration of session.

       

      The problem that I am facing is how to send a message to a user Alice that is connected on Node1, to Bob connected on Node2.

       

      I was thinking of using Infinispan to store users online (and NodoX where they are connected to), and then use EJB remoting to connect from one node to another to send the message.

       

      I need a synchronous call between nodes because I would notify Alice if the message was actually delivered to the user Bob client.

       

      There are better solutions?

       

      Thanks,

      Domenico