|
PHP5中文手册
SAMConnection->receive()(No version information available, might be only in CVS) SAMConnection->receive() — Receive a message from a queue or subscription. 说明SAMConnection
SAMMessage receive
( string $target
[, array $properties
] )
参数
返回值This method returns a SAMMessage object or FALSE if an error occurs. 范例
Example#1 Receiving a message from a queue
<?php
Example#2 Receiving a message from a queue with options In this example the SAM_CORRELID option is used to specify a correlation id string to be used to identify the message to receive. A wait timeout of 10 seconds is also specified.
<?php
Example#3 Receiving a message from a subscription In this example we show how to receive a message from a subscription id.
<?php Please note that $subscriptionName is a subscription id returned from an earlier subscribe call. |