Skip to content

Instantly share code, notes, and snippets.

@bbhoss
Created May 25, 2010 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbhoss/b77b10c43c8761b757bb to your computer and use it in GitHub Desktop.
Save bbhoss/b77b10c43c8761b757bb to your computer and use it in GitHub Desktop.
amq = ::MQ.new
exch = ::MQ::Exchange.new(amq, :topic, "admissions", :durable => true)
amq.queue('admissions').bind(exch, :key => '#').subscribe do |message|
#do something awesome
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment