Subject: high availability and multiple connection for XmppClientConnection
Hi agsXmpp supporters,
I am trying to set up 2 instances of XmppClientConnection, let's call them A and B, with same username, password, server, and port so that when one instance goes down, the other instance can still maintain the connection, listen to, and send messages from/to a client C.
How should I go about this?
Right now I have 2 instances of XmppClientConnection running with same configuration. It seems like the first instance A can send and receive message from client C, a Spark client. The other instance B is just sit there getting nothing. When I disable the first instance A, I expect the other instance B to be the backup and can jump in and handle communication, but it's not working because if I disable the first instance, I call close the connection: xmppCon.Close() and C can't send message to B base on the fact that OnXmppConnectionStateChanged: Disconnected.
I need some direction on how to set up and configure 2 xmppClientConnection with same configuration. For example, I can both login to Spark and agsxmpp Simple Client with the same username and login, when I log out Spark, the other Simple Client can still listen and send message on behalf of that same username, correct?
Thank you,
An.
I am trying to set up 2 instances of XmppClientConnection, let's call them A and B, with same username, password, server, and port so that when one instance goes down, the other instance can still maintain the connection, listen to, and send messages from/to a client C.
How should I go about this?
Right now I have 2 instances of XmppClientConnection running with same configuration. It seems like the first instance A can send and receive message from client C, a Spark client. The other instance B is just sit there getting nothing. When I disable the first instance A, I expect the other instance B to be the backup and can jump in and handle communication, but it's not working because if I disable the first instance, I call close the connection: xmppCon.Close() and C can't send message to B base on the fact that OnXmppConnectionStateChanged: Disconnected.
I need some direction on how to set up and configure 2 xmppClientConnection with same configuration. For example, I can both login to Spark and agsxmpp Simple Client with the same username and login, when I log out Spark, the other Simple Client can still listen and send message on behalf of that same username, correct?
Thank you,
An.