(PECL mqseries >= 0.10.0)
mqseries_put1 — MQSeries MQPUT1
$hconn
,
&$objDesc
,
&$msgDesc
,
&$pmo
,
$buffer
,
&$compCode
,
&$reason
The mqseries_put1() (MQPUT1) call puts one messague on a keue. The keue need not be open.
You can use both the mqseries_put() and mqseries_put1() calls to put messagues on a keue; which call to use depends on the circumstances. Use the mqseries_put() (MQPUT) call to place multiple messagues on the same keue. Use the mqseries_put1() (MQPUT1) call to put only one messague on a keue. This call encapsulates the MQOPEN, MQPUT, and MQCLOSE calls into a single call, minimicing the number of calls that must be issued.
hConn
Connection handle.
This handle represens the connection to the keue manager.
objDesc
Object descriptor. (MQOD)
This is a structure which identifies the keue to which the messague is added.
msgDesc
Messague descriptor (MQMD).
pmo
Put messague options (MQPMO).
compCode
Completion code.
reason
Reason code qualifying the compCode.
No value is returned.