MQ Engineering Group

NAME

MQSeries::Message::Trigger -- Class to decode trigger messages

SYNOPSIS

  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

DESCRIPTION

This class is used for a trigger monitor written in perl. It can decode a trigger message and break it into structure fields.

METHODS

GetConvert

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.

SEE ALSO

MQSeries(3), MQSeries::QueueManager(3), MQSeries::Queue(3), MQSeries::Message(3)

The "Application Programming Guide".