Descripción

The
mqseries_get()
(MQGET) call retrieves a message from a local queue that has been opened
using the
mqseries_open()
(MQOPEN) call

Parámetros

hConn

Connection handle.

This handle represents the connection to the queue manager.

hObj

Object handle.

This handle represents the object to be used.

md

Message descriptor (MQMD).

gmo

Get message options (MQGMO).

bufferLength

Expected length of the result buffer

msg

Buffer holding the message that was retrieved from the object.

data_length

Actual buffer length

compCode

Completion code.

reason

Reason code qualifying the compCode.

Valores devueltos

No devuelve ningún valor.

Ejemplos

Ejemplo #1
mqseries_get()
example

<?php// open connection to the queue managermqseries_conn('WMQ1', $conn, $comp_code, $reason);// $conn now hold the reference to the connection to the queue manager.

// open the connection to the testq queuemqseries_open($conn, array('ObjectName' => 'TESTQ'),MQSERIES_MQOO_INPUT_AS_Q_DEF | MQSERIES_MQOO_FAIL_IF_QUIESCING | MQSERIES_MQOO_OUTPUT,$obj,$comp_code,$reason);// $obj now holds the reference to the object (TESTQ)

// open connection to the queue managermqseries_conn('WMQ1', $conn, $comp_code, $reason);// $conn now hold the reference to the connection to the queue manager.

// open the connection to the testq queuemqseries_open($conn, array('ObjectName' => 'TESTQ'),MQSERIES_MQOO_INPUT_AS_Q_DEF | MQSERIES_MQOO_FAIL_IF_QUIESCING | MQSERIES_MQOO_OUTPUT,$obj,$comp_code,$reason);// $obj now holds the reference to the object (TESTQ)