MQSERIES_CMIT(3) 1 MQSERIES_CMIT(3)mqseries_cmit - MQSeries MQCMITSYNOPSIS
void mqseries_cmit (resource $hconn, resource &$compCode, resource &$reason)
DESCRIPTION
The mqseries_cmit(3) (MQCMIT) call indicates to the queue manager that the application has reached a syncpoint, and that all of the mes-
sage gets and puts that have occurred since the last syncpoint are to be made permanent. Messages put as part of a unit of work are made
available to other applications; messages retrieved as part of a unit of work are deleted.
PARAMETERS
o $hConn
-Connection handle.This handle represents the connection to the queue manager.
o $compCode
-Completion code.
o $reason
-Reason code qualifying the compCode.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
mqseries_cmit(3) example
<?php
mqseries_cmit($conn, $comp_code, $reason);
if ($comp_code !== MQSERIES_MQCC_OK) {
printf("cmit CompCode:%d Reason:%d Text:%s<br>
", $comp_code, $reason, mqseries_strerror($reason));
}
?>
NOTES
Note
mqseries_back(3) will not function when using MQSeries Client to connect to a Queueu Manager.
SEE ALSO mqseries_begin(3), mqseries_back(3), mqseries_conn(3), mqseries_connx(3).
PHP Documentation Group MQSERIES_CMIT(3)
Check Out this Related Man Page
MQSERIES_BEGIN(3) 1 MQSERIES_BEGIN(3)mqseries_begin - MQseries MQBEGINSYNOPSIS
void mqseries_begin (resource $hconn, array $beginOptions, resource &$compCode, resource &$reason)
DESCRIPTION
The mqseries_begin(3) (MQBEGIN) call begins a unit of work that is coordinated by the queue manager, and that may involve external
resource managers.
Using mqseries_begin(3) starts the unit of work. Either mqseries_back(3) or mqseries_cmit(3) ends the unit of work.
PARAMETERS
o $hConn
-Connection handle.This handle represents the connection to the queue manager.
o $compCode
-Completion code.
o $reason
-Reason code qualifying the compCode.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
mqseries_begin(3) example
<?php
$mqbo = array();
mqseries_begin( $conn,
$mqbo,
$comp_code,
$reason);
if ($comp_code !== MQSERIES_MQCC_OK) {
/* reason code 2121 is a warning for more information see MQSeries reference manual.*/
if ($reason !== 2121) {
printf("CompCode:%d Reason:%d Text:%s<br>
", $comp_code, $reason, mqseries_strerror($reason));
}
}
?>
NOTES
Note
mqseries_begin(3) will not function when using MQSeries Client to connect to a Queueu Manager.
SEE ALSO mqseries_conn(3), mqseries_connx(3), mqseries_back(3), mqseries_cmit(3).
PHP Documentation Group MQSERIES_BEGIN(3)
Hi ,
Could anyone suggest how do you implement a Connection pool in C?
Connection pool to store/reuse connections to any resource manager .. database, MQSeries.
How is this done?
Regards,
VJ (0 Replies)
Iam new to shellscript.
1)How to strart QUERYMANAGER using shellscript.
2)How to put and get messages in MQSeries using shellscripts.
3)iam using local queues .
Thanks lot. (0 Replies)
Hi,
I have an issue with a PERL5 script that calls MQCONN. I get this error on this Perl step when connecting to my Q manager: "Undefined Undefined subroutine &main::MQCONN called at ./quelog.pl "
I use this code:$Hconn = MQCONN($QMGR,$CompCode,$Reason);
In my .profile:
export... (2 Replies)