Sha256: 30dbecd2f0e197c59f59b78231952c2507efc6b3ca354809b03a4d3415008feb

Contents?: true

Size: 372 Bytes

Versions: 11

Compression:

Stored size: 372 Bytes

Contents

#
# Sample : put() : Put a single request message to a queue
#
require 'rubygems'
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

11 entries across 11 versions & 3 rubygems

Version Path
ferocia-rubywmq-2.0.7 examples/put1_c.rb
ferocia-rubywmq-2.0.6 examples/put1_c.rb
ferocia-rubywmq-2.0.4 examples/put1_c.rb
ferocia-rubywmq-2.0.3 examples/put1_c.rb
ferocia-rubywmq-2.0.2 examples/put1_c.rb
ekaranto-rubywmq-2.0.2 examples/put1_c.rb
rubywmq-2.0.2 examples/put1_c.rb
rubywmq-2.0.1 examples/put1_c.rb
ekaranto-rubywmq-2.0.0 examples/put1_c.rb
rubywmq-2.0.0 examples/put1_c.rb
rubywmq-2.0.0.pre3 examples/put1_c.rb