Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » QAnywhere » QAnywhere リファレンス » QAnywhere SQL API リファレンス » メッセージの管理

 

ml_qa_triggersendreceive

Mobile Link サーバとのメッセージの同期をトリガします。

備考

通常、メッセージ同期は QAnywhere Agent が処理します。ただし、同期ポリシーがオン・デマンドの場合、メッセージ同期をトリガするのはアプリケーション側の役割です。これを行うには、このストアド・プロシージャを使用します。メッセージ同期のトリガは、現在のトランザクションがコミットされるまで適用されません。

参照

次の例では、メッセージの送信後すぐに、メッセージ転送が開始されます。

begin
    declare @msgid varchar(128);
    set @msgid = ml_qa_createmessage();
    call ml_qa_settextcontent( @msgid, 'my simple message' );
    call ml_qa_putmessage( @msgid, 'clientid\queuename' );
    call ml_qa_triggersendreceive();
    commit;
end