deleteWSGWInstance command
Use the deleteWSGWInstance command to delete a gateway instance.
You can delete a gateway instance by using the wsadmin tool as described in this topic, or by using the administrative console as described in Deleting gateway instances.
如果要執行這個指令,請使用 wsadmin Scripting 用戶端的 AdminTask 物件。
wsadmin Scripting 用戶端是從 Qshell 執行.
如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.
服務整合匯流排指令有指令行說明:
- 如需可用的閘道指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('WSGateway')
- 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('command_name')
使用指令之後,請利用下列指令,儲存對主要配置所做的變更:
AdminConfig.save()
Purpose
This command deletes a gateway instance.
Target Object
ObjectName of the WSGWInstance object
The command deletes
the following objects:
- The gateway instance.
- All gateway and proxy services deployed to the gateway instance.
- All target services deployed to any of the gateway services.
- All outbound services created when creating any of the gateway services by using the administrative console "Create a new gateway service" wizard.
Note: WebSphere® Application Server
5.1 版閘道利用過濾器來處理記載訊息、轉換訊息內容或終止送入要求之類的作業。
當包含過濾器的 5.1 版閘道移轉到 第 6 版時,會建立 "StorageQueue" 目的地來支援 第 6 版環境中現有的 5.1 版閘道過濾器。
在 7.0 版或更新版本中,不使用這些目的地,但刪除相關聯的閘道時,並不會自動刪除它們。
如需以手動方式尋找及移除這些目的地的相關資訊,請參閱相對應的疑難排解要訣。
Parameters
None.
Example
- Using Jython:
AdminTask.deleteWSGWInstance(wsgw)
- Using Jacl:
$AdminTask deleteWSGWInstance $wsgw