examples/put_a.rb in rubywmq-0.3.0-i386-mswin32-mq5.3 vs examples/put_a.rb in rubywmq-1.0.0
- old
+ new
@@ -16,9 +16,10 @@
#
# Sample : put() : Put a single message to a queue
# Open the queue so that multiple puts can be performed
#
+require 'rubygems'
require 'wmq/wmq'
WMQ::QueueManager.connect(:q_mgr_name=>'REID') do |qmgr|
qmgr.open_queue(:q_name=>'TEST.QUEUE', :mode=>:output) do |queue|