-
-
Save bbhoss/b77b10c43c8761b757bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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