powered by Jive Software

XMPPConnection.isConnected Incorrect

I have a situation where XMPPConnection.isConnected() is returning true, when the connection has clearly dropped. The Openfire server is showing the user as offline and no messages can be received.

Are there any known bugs related to this?

I am using this to periodically poll the connection status and reconnect if neccessary.

Would I be better off using a ConnectionMonitor instead? Or is there another even better approach?

This user needs to be connected all the time.

Any help much appreciated.

You are better off using a ConnectionListener in this case.