From 04047a25c6813fca28da27439d901f6977e618e2 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 23 Jun 2009 13:04:20 +0000 Subject: 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 --- ruby/examples/hello-world.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ruby/examples') 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!") -- cgit v1.2.1