examples/server.rb in rubywmq-0.3.0-i386-mswin32-mq5.3 vs examples/server.rb in rubywmq-1.0.0
- old
+ new
@@ -60,9 +60,10 @@
# - Need to re-open any queues
# - Do any changes to other resources need to be undone first?
# - E.g. Database, File etc..
# - etc....
#
+require 'rubygems'
require 'wmq/wmq'
WMQ::QueueManager.connect(:q_mgr_name=>'REID') do |qmgr|
qmgr.open_queue(:q_name=>'TEST.QUEUE', :mode=>:input) do |queue|
queue.each(:wait=>60000, :sync=>true, :convert=>true) do |request|