jmesnil / stomp-websocket

Stomp client for Web browsers and node.js apps
http://jmesnil.net/stomp-websocket/doc/
Apache License 2.0
1.43k stars 588 forks source link

Server failover support in StompJS client #35

Open mehul400081 opened 10 years ago

mehul400081 commented 10 years ago

Is there any failover configuration support in StompJS. We are trying to connect to ActiveMQ cluster and as per http://activemq.apache.org/failover-transport-reference.html the client should use failover tranport url of the format

failover:(ws://primary:61616,ws://secondary:61616)?randomize=false

jmesnil commented 10 years ago

The failover URL for ActiveMQ is specific to this browser and is not supported by the STOMP protocol.

ActiveMQ has some documentation about this http://activemq.apache.org/cms/stomp-support.html#StompSupport-StompandFailover.

This is not something that can be implemented in a STOMP client without changes to the protocol (no transactions will be restored, messages will not be recovered, etc.)