createWSNTopicNamespace command
Use the createWSNTopicNamespace command to create a new WS-Notification permanent topic namespace. 您將使用永久主題名稱空間,來靜態定義 WS-Notification 主題名稱空間 URI 和服務整合匯流排主題空間目的地間的關聯性。
You can create a new WS-Notification permanent topic namespace by using the wsadmin tool as described in this topic, or by using the administrative console as described in Creating a new WS-Notification permanent topic namespace.
您可以在 Cell 中所定義的一組永久主題名稱空間(也就是說,針對這個 Cell 中所定義的所有 WS-Notification 服務)與它們所關聯的服務整合匯流排主題空間之間,建立起多對多的關係。 這些關係有可能會變得非常複雜化,這會隨著連接 WS-Notification 服務的應用程式所需要的拓蹼而不同。 For guidance on when certain configurations might or might not be appropriate, see Options for associating a permanent topic namespace with a bus topic space.
如果要執行這個指令,請使用 wsadmin Scripting 用戶端的 AdminTask 物件。
wsadmin Scripting 用戶端是從 Qshell 執行.
如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.
- 如需可用的 WS-Notification 指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('WSNotificationCommands')
- 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('command_name')
AdminConfig.save()
Purpose
- It creates a new WS-Notification topic namespace on a WS-Notification service and associates it with the specified service integration bus topic space.
- It creates the specified service integration bus topic space if it does not already exist.
Target Object
WSNService
Required parameters
- -namespace
- 換言之,就是 WS-Notification 應用程式用來參照這個名稱空間所管理之主題的名稱空間 URI。 例如,http://widgetproducer.com/prices。
- -busTopicSpace
- 亦即,這個主題名稱空間所用的匯流排主題空間。
Conditional parameters
None.
Optional parameters
- -reliability
- Valid
values for this property are as follows:
- BEST_EFFORT_NONPERSISTENT
- EXPRESS_NONPERSISTENT
- RELIABLE_NONPERSISTENT
- RELIABLE_PERSISTENT
- ASSURED_PERSISTENT
Examples
In the following examples, the WS-Notification topic namespace uses the WS-Notification service newService created in the example from topic "Creating a new WS-Notification service by using the wsadmin tool".
- Using Jython:
newTopicNamespace = AdminTask.createWSNTopicNamespace(newService, ["-namespace", "http://example.org/topicNamespace/example1", "-busTopicSpace", "mySIBTopicspace"] )
- Using Jacl:
set newTopicNamespace [ $AdminTask createWSNTopicNamespace $newService { -namespace http://example.org/topicNamespace/example1 -busTopicSpace mySIBTopicspace } ]
- Using Jython:
newTopicNamespace = AdminTask.createWSNTopicNamespace(newService, ["-namespace", "http://example.org/topicNamespace/example1", "-busTopicSpace", "mySIBTopicspace", "-reliability", "EXPRESS_NONPERSISTENT"] )
- Using Jacl:
set newTopicNamespace [ $AdminTask createWSNTopicNamespace $newService { -namespace http://example.org/topicNamespace/example1 -busTopicSpace mySIBTopicspace -reliability EXPRESS_NONPERSISTENT} ]