|
SAMConnection::receiveReceive a message from a queue or subscription. Beschreibung
SAMMessage SAMConnection::receive
( string
$target
[, array $properties
] )Parameter-Liste
Rückgabewerte
This method returns a SAMMessage object or Beispiele
Beispiel #1 Receiving a message from a queue
<?php
Beispiel #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
Beispiel #3 Receiving a message from a subscription In this example we show how to receive a message from a subscription id.
<?phpPlease note that $subscriptionName is a subscription id returned from an earlier subscribe call. |