examples/put_a.rb in rubywmq-2.0.2 vs examples/put_a.rb in rubywmq-2.1.0
- old
+ new
@@ -1,10 +1,9 @@
#
# Sample : put() : Put a single message to a queue
# Open the queue so that multiple puts can be performed
#
-require 'rubygems'
require 'wmq'
WMQ::QueueManager.connect(:q_mgr_name=>'REID') do |qmgr|
qmgr.open_queue(:q_name=>'TEST.QUEUE', :mode=>:output) do |queue|
@@ -14,6 +13,5 @@
# Second message
# This message will have new message and correlation id's
queue.put(:data => 'Hello Again')
end
end
-