Sha256: 2e51ed3638a88eedaac040d29c5485a1810997ab791558c236c7f516efba6d83

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

#
# Sample : put() : Put a single request message to a queue
#
require 'wmq'

WMQ::QueueManager.connect(q_mgr_name: 'REID') do |qmgr|
  message      = WMQ::Message.new
  message.data = 'Hello World'

  message.descriptor = {
    msg_type:   WMQ::MQMT_REQUEST,
    reply_to_q: 'TEST.REPLY.QUEUE'
  }

  qmgr.put(q_name: 'TEST.QUEUE', message: message)
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ferocia-rubywmq-2.1.1 examples/put1_c.rb
rubywmq-2.1.1 examples/put1_c.rb
rubywmq-2.1.0 examples/put1_c.rb