Sha256: 653e914943b4783443481a04af1f4b0d107c214e5577dbe63c69d960ef195212
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
# # Sample : get() : Retrieve a single message from a queue # If no messages are on the queue, message.data is nil # require 'wmq' WMQ::QueueManager.connect(q_mgr_name: 'REID') do |qmgr| qmgr.open_queue(q_name: 'TEST.QUEUE', mode: :input) do |queue| message = WMQ::Message.new if queue.get(message: message) puts "Data Received: #{message.data}" else puts 'No message available' end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ferocia-rubywmq-2.1.1 | examples/get_a.rb |
rubywmq-2.1.1 | examples/get_a.rb |
rubywmq-2.1.0 | examples/get_a.rb |