【发布时间】:2018-04-27 01:05:02
【问题描述】:
我想设置一个Recoverable attribute 表单消息,并将其发送到 MSMQ。我一直在搜索一些如何在 PHP 中执行此操作的资源,但我没有找到任何资源。这个我试过了
if(!$msgOut = new COM("MSMQ.MSMQMessage")){
return false;
}
$msgOut->Body = $this->getBody();
$msgOut->Label = $this->getLabel();
$msgOut->Recoverable = true;
$msgOut->Send($msgQueue);
但它不起作用。我还尝试将布尔值设置为字符串值和整数,但没有一个起作用。
当我尝试 $msgOut->Recoverable = "true"; 或 $msgOut->Recoverable = true; 时,我得到了 com_exception
无法查找“可恢复”:未知名称。
【问题讨论】:
-
试试
Recoverable? -
@LioraHaydont 修正了拼写,谢谢,但仍然返回错误。
-
我以为这只是一个错字,但我想这不会那么容易:/
标签: php message-queue msmq