| changeset 52 | 8972d204473a |
| parent 51 | 42a874db3d80 |
| child 53 | b0940cc0862a |
1.1 --- a/examples/ruby/topic-receiver.rb Mon Aug 11 17:49:09 2008 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,8 +0,0 @@ 1.4 -require 'rubygems' 1.5 -require 'stomp' 1.6 - 1.7 -conn = Stomp::Connection.open('guest', 'guest', 'localhost') 1.8 -conn.subscribe('myqueue', :exchange => 'amq.topic', :routing_key => "x.#") 1.9 -while mesg = conn.receive 1.10 - puts mesg.body 1.11 -end