summaryrefslogtreecommitdiff
path: root/ruby/examples/hello-world.rb
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-06-23 13:04:20 +0000
committerRafael H. Schloming <rhs@apache.org>2009-06-23 13:04:20 +0000
commit04047a25c6813fca28da27439d901f6977e618e2 (patch)
treec79107847b8da58ce46a03b9ec965b386c575938 /ruby/examples/hello-world.rb
parent88b6b472b53db97defafe87d658f97ec0f78cd38 (diff)
downloadqpid-python-04047a25c6813fca28da27439d901f6977e618e2.tar.gz
renamed the type field of structs to st_type so it won't conflict with struct fields
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby/examples/hello-world.rb')
-rw-r--r--ruby/examples/hello-world.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/examples/hello-world.rb b/ruby/examples/hello-world.rb
index 755d13bd54..e8ef673316 100644
--- a/ruby/examples/hello-world.rb
+++ b/ruby/examples/hello-world.rb
@@ -36,7 +36,9 @@ ssn = conn.session("test")
# create a queue
ssn.queue_declare("test-queue")
-# publish a message
+ssn.exchange_declare("test-exchange", :type => "direct")
+
+# Publish a message
dp = ssn.delivery_properties(:routing_key => "test-queue")
mp = ssn.message_properties(:content_type => "text/plain")
msg = Qpid::Message.new(dp, mp, "Hello World!")