Openfire Cluster Smack reconnection fails

Greetings

I have set a cluster of two openfire instances openfireA openfireB .My main test case is having clients connected to the cluster through a load balancer.

Step one stopping openfireA

Users connected to openfireA loose theire connection and try to reconnect through the load balanacer (they will end up on openfireB)

Step two starting openfireA

Step three stopping openfireB

Users connected to openfireB loose theire connection and try to reconnect through the load balanacer (they will end up on openfireA)

Step four starting openfireA

In order to connect to the openfire cluster on the client side I use asmack and smack.

By repeating the test numerous times I stumbled upon a reconnection problem.

Reconnecion attempts are not successful however

The XMPPConnection.isConnected() returns true.

Also the ConnectionListener Implies that the reconnect was successful.

Thus the clients remain disconnected without any clue that they are offline.

Everyone with the same problem?

Reconnecion attempts are not successful however

Please elaborate why the are not successful.

Smack clients try to connect and they seem to be successful.

The ConnectionListener connected function is being called.

However the remaining open fire control panel shows no session of the specific client that tried to reconnect.

It is as if the “flag” that the smack library uses for the connection of the client is falsely set, and even though there is no session

the isConnected() function returns true, therefore there cannot be any reconnection or error.

I set the Debugger to true on asmack but there was no exception printed.

The only console output are the packets that were going to be send.

Same here… we cannot determine the connection status as the Emmanouil explains…