From: Elliot Nelson <nelson.w...@gmail.com>
Date: Fri, 16 May 2008 07:19:05 -0700 (PDT)
Local: Fri, May 16 2008 10:19 am
Subject: Re: Stomp Ruby gem on GitHub
One thing I would really like to see is low-level connection failover
within the Stomp gem itself. In my current hacked-up copy of stomp.rb, I'm accomplishing this by storing an array of connection objects instead of host/port variables. I then increment an index into that array every time I try a reconnect within socket(). Basically, my socket() has an @hosts array and @host_index, and does
@host_index = (@host_index+1)%...@hosts.size
And I then open a "reliable with failover" connection using a method I
Stomp::Connection.open_failover( [{:host => "host1"}, {:host =>
Ideally, if support for Stomp "URLs" was added to the gem, you could
Stomp::Connection.open("failover:stomp://user:password@host1;stomp://
If there's a better list for this discussion please let me know, I'm
Elliot You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||