Sha256: 14d73ff4199b02c758a1879ecda5975edef925eec385b80ee885c17cba2ea06d

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 Bytes

Contents

#
# Sample : put1() : Put a single message to a queue
#
#          Set the correlation id to a text string
#
require 'rubygems'
require 'wmq'

WMQ::QueueManager.connect(:q_mgr_name=>'REID') do |qmgr|

  message = WMQ::Message.new
  message.data = 'Hello World'
  message.descriptor[:correl_id] = 'My first message'

  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_b.rb
ferocia-rubywmq-2.0.6 examples/put1_b.rb
ferocia-rubywmq-2.0.4 examples/put1_b.rb
ferocia-rubywmq-2.0.3 examples/put1_b.rb
ferocia-rubywmq-2.0.2 examples/put1_b.rb
ekaranto-rubywmq-2.0.2 examples/put1_b.rb
rubywmq-2.0.2 examples/put1_b.rb
rubywmq-2.0.1 examples/put1_b.rb
ekaranto-rubywmq-2.0.0 examples/put1_b.rb
rubywmq-2.0.0 examples/put1_b.rb
rubywmq-2.0.0.pre3 examples/put1_b.rb