examples/put_dynamic_q.rb in ferocia-rubywmq-2.0.7 vs examples/put_dynamic_q.rb in ferocia-rubywmq-2.1.1
- old
+ new
@@ -7,16 +7,16 @@
#
# This sample is more usefull if the model queue was a Permanent Dynamic one.
# That way the queue would remain after termination of this code.
# In this sample the queue will disappear when this program terminates
#
-require 'rubygems'
require 'wmq'
-WMQ::QueueManager.connect(:q_mgr_name=>'REID') do |qmgr|
- qmgr.open_queue(:q_name => 'SYSTEM.DEFAULT.MODEL.QUEUE',
- :dynamic_q_name => 'TEST.QUEUE.SAMPLE',
- :mode => :output
- ) do |queue|
- queue.put(:data => 'Hello World')
+WMQ::QueueManager.connect(q_mgr_name: 'REID') do |qmgr|
+ qmgr.open_queue(
+ q_name: 'SYSTEM.DEFAULT.MODEL.QUEUE',
+ dynamic_q_name: 'TEST.QUEUE.SAMPLE',
+ mode: :output
+ ) do |queue|
+ queue.put(data: 'Hello World')
end
end