summaryrefslogtreecommitdiff
path: root/qpid/ruby/examples
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
commit3b6e761395b5ce3ad22b20dc1a917e47ea1447e9 (patch)
tree95348d5a30869306ff4a68716b6b5c9a3c871a1d /qpid/ruby/examples
parentb846a1bc9378a0f83f8e91bac261586244056646 (diff)
downloadqpid-python-3b6e761395b5ce3ad22b20dc1a917e47ea1447e9.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@787663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/ruby/examples')
-rw-r--r--qpid/ruby/examples/hello-world.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/ruby/examples/hello-world.rb b/qpid/ruby/examples/hello-world.rb
index 755d13bd54..e8ef673316 100644
--- a/qpid/ruby/examples/hello-world.rb
+++ b/qpid/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!")