MQSeries::Message::Trigger -- Class to decode trigger messages
use MQSeries::Message::Trigger; # # Get a message from an initiation queue # my $qmgr_obj = MQSeries::QueueManager->new(QueueManager => 'TEST.QM'); my $queue = MQSeries::Queue-> new(QueueManager => $qmgr_obj, Queue => 'APPGROUP.APPNAME.INITQ', Mode => 'input'); my $msg = MQSeries::Message::Trigger->new(); $queue->Get(Message => $msg, 'Convert' => 0); my $data = $msg->Data(); # Hash-reference
This class is used for a trigger monitor written in perl. It can decode a trigger message and break it into structure fields.
This methods is not called by the users application, but is used internally by MQSeries::Queue::Get().
GetConvert() decodes a trigger message into a hash-reference that described the triggerevent in detail.
The "Application Programming Guide".