Webchat using JBOSS Cluster

Firstly, I delpoy the webchat.war in two JBOSS Server, called them node1 and node2.

After testing in each node, it works well.

Then I do a test that the user enter into webchat.war in node1 and talked with the spark client, and then shut down the node1, the user’s request will be transfer to node2 successfully, but the connection with the spark client is closed.

Any body knwo how to make the connection continue working even the node1 or node2 suddenly shut down?

Thank you!