Skip to content

Instantly share code, notes, and snippets.

@arockwell
Created May 6, 2011 00:28
Show Gist options
  • Select an option

  • Save arockwell/958243 to your computer and use it in GitHub Desktop.

Select an option

Save arockwell/958243 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'stomp'
queue = "/queue/IdCard.Vivo"
puts "Consumer for queue #{queue}"
client = Stomp::Client.new "lib-vivo", "[redacted]", "bsd-dev-activemq.bsd.ufl.edu", 61618, true
client.subscribe queue, { :ack => :client } do | message |
puts "message=#{message.body}"
end
client.join
client.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment