Class | WMQ::Message |
In: |
ext/wmq.c
ext/lib/wmq_temp.rb |
Parent: | Object |
Message contains the message descriptor (MQMD), data and any headers.
Note:
Message has the following attributes:
# WebSphere MQ Equivalent :format => WMQ::MQFMT_STRING, # MQMD.Format - Format of data only WMQ::MQFMT_NONE # Do not supply header formats here :original_length => Number # MQMD.OriginalLength :priority => 0 .. 9 # MQMD.Priority :put_time => String # MQMD.PutTime :msg_id => String ... :expiry => Number :persistence => Number :reply_to_q => String :correl_id => String :feedback => Number :offset => Number :report => Number :msg_flags => Number :reply_to_q_mgr => String :appl_identity_data => String :put_appl_name => String :user_identifier => String :msg_seq_number => Number :appl_origin_data => String :accounting_token => String :backout_count => Number :coded_char_set_id => Number :put_appl_type => Number :msg_type => Number :group_id => String :put_date => String :encoding => Number
}
The following headers are supported:
:header_type => :rf_header :....
....
data | [R] | |
data | [W] | |
descriptor | [W] | |
descriptor | [R] | |
headers | [R] | |
headers | [W] |
Optional Named Parameters (as a single hash):
Example:
message = WMQ::Message.new
Example:
message = WMQ::Message.new(:data=>'Hello World', :descriptor=> { :format => WMQ::MQFMT_STRING })