stompgem / stomp

A ruby gem for sending and receiving messages from a Stomp protocol compliant message queue. Includes: failover logic, ssl support.
http://stomp.github.com
Apache License 2.0
152 stars 80 forks source link

failover: ssl timeout #143

Closed krish4 closed 5 years ago

krish4 commented 7 years ago

here are the sample data i have,

url: failover:(ssl://ec2-53-163-43-44.us-west-1.compute.amazonaws.com:61613?wireFormat.maxInactivityDuration=1200000) username: docadeeccess password: Ddddccess

additional ssl parameters. trust store: doc-client.ts (file attached) trust store password: KEYsfft0r3Scrt key store: doc-client.ks (file attached) key store password: KEYst0r3ffScrt

additional/optional parameters reliable: true

queue name: DOC_REQUEST

I'm having below code

@login1='docaccrrress' @passcode1='D0cCorrn@ccttess' @options = "initialReconnectDelay=5000&randomize=false&useExponentialBackOff=false" @remotehost1='ec2-53-163-43-44.us-west-1.compute.amazonaws.com' client = Stomp::Client.new("failover:(stomp+ssl://#{@login1}:#{@passcode1}@#{@remotehost1}:61613)?#{@options}")

please correct my code and help me connection establishment

gmallard commented 7 years ago

Little or no help is possible without error messages.

Timeouts can occur when code uses SSL but connects to a non-ssl port. Check that.

Quit using a failover:// URL. Follow the gem recommendations, which is to use a 'hash' login.

Quit saying something is attached, when there is nothing there.

krish4 commented 7 years ago

ok..I will use the hash login..

Thanks for the reply

gmallard commented 5 years ago

Closing this due to lack of further information from the OP. Please re-open with additional examples if that is possible.