ページの先頭行へ戻る
Interstage Application Server V13.0.0 GlassFish 設計・構築・運用ガイド
FUJITSU Software

10.6.4 destroy durサブコマンド

形式

imqcmd destroy dur [-c クライアントID] -n サブスクライバの識別名


機能説明

永続サブスクリプションを削除します。


オプション

オプション名

説明

-c

クライアントIDを指定します。クライアントIDのないサブスクリプションを削除する場合、指定する必要はありません。

-n

サブスクライバの識別名を指定します。


戻り値

0: 正常終了
0以外: 異常終了


注意事項

imqcmd list durを使用して、削除対象の永続サブスクリプションの状態が「INACTIVE」であることを確認してから、本コマンドを実行してください。


使用例

以下のように実行します。
作成済みの永続サブスクリプションを削除してもよいかが確認されます。削除してもよい場合は、「y」を入力します。

C:\Interstage\glassfish5\mq\bin\imqcmd destroy dur -c test -n sample
Username: admin
Password:
Destroying the durable subscription where:

------------------------------
Durable Sub. Name    Client ID
------------------------------
sample               test

On the broker specified by:

-------------------------
Host         Primary Port
-------------------------
localhost    17696

Are you sure you want to destroy this durable subscription? (y/n)[n] y

Successfully destroyed the durable subscription.

/opt/FJSViaps/glassfish5/mq/bin/imqcmd destroy dur -c test -n sample
Username: admin
Password:
Destroying the durable subscription where:

------------------------------
Durable Sub. Name    Client ID
------------------------------
sample               test

On the broker specified by:

-------------------------
Host         Primary Port
-------------------------
localhost    17696

Are you sure you want to destroy this durable subscription? (y/n)[n] y

Successfully destroyed the durable subscription.