Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Does it support reconnect automatically #30

Open
neoqing opened this issue Dec 9, 2013 · 4 comments
Open

Does it support reconnect automatically #30

neoqing opened this issue Dec 9, 2013 · 4 comments

Comments

@neoqing
Copy link

neoqing commented Dec 9, 2013

Hi,All:
I'm using activeMQ and this client, but time to time, I found that the client lost the connection without any notification, and I checked activeMQ doc ,it does support the reconnection,http://activemq.apache.org/how-can-i-support-auto-reconnection.html, but I did not see this feature in the nodejs client? Or there is some way that I don't know, thanks in advance.

@dkhunt27
Copy link
Collaborator

dkhunt27 commented Dec 9, 2013

I was running into this exact same thing with ActiveMQ...especially using SSL. I tried a few things like using timeout/keepAlive in the connection setup, but that didn't work. I did not try the failover setting the website recommends.

I just made a pull request, this has my update to emit a "disconnected" event which I can then catch in my code and then just reconnect. I am sure there is a better way, but this did get the job done for me.

@neoqing
Copy link
Author

neoqing commented Dec 10, 2013

Hi,Dan:
Thank you very much, I'll try this approach and update to this thread.
thanks for sharing.

Neo

On Tue, Dec 10, 2013 at 12:34 AM, Dan Hunt [email protected] wrote:

I was running into this exact same thing with ActiveMQ...especially using
SSL. I tried a few things like using timeout/keepAlive in the connection
setup, but that didn't work. I did not try the failover setting the website
recommends.

I just made a pull request, this has my update to emit a "disconnected"
event which I can then catch in my code and then just reconnect. I am sure
there is a better way, but this did get the job done for me.


Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-30147215
.

@victor73
Copy link
Contributor

Any idea when this pull request might get included?

@enVolt
Copy link

enVolt commented Feb 28, 2017

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants