Configuring shared non-durable subscriptions for a connection factory

Use this task to configure the Share non-durable subscriptions option; an attribute of the connection factory that clients use to connect to the bus.

About this task

The Share non-durable subscriptions option controls whether non-durable subscriptions are shared between subscribers in a cluster. To set this option, use the administrative console to complete the following steps.

Procedure

  1. In the navigation pane, click 資源 -> JMS -> JMS 提供者.
  2. In the content pane, click Default messaging provider.
  3. In the content pane, under Additional Properties, click Connection factories.
  4. Select the connection factory you want to configure, or click New to create one.
  5. Select Subscription home for the subscription.
    訂閱首頁

    This identifies the messaging engine where durable subscriptions are localized on the service integration bus. Administrators can manage the runtime state of durable subscriptions through publication points for that messaging engine.

    Note: For shared non-durable subscription, the connection factory should be connected to the SubscriptionHome messaging engine during connection factory creation. To ensure that the connection factory is connected always to the SubscriptionHome messaging engine, set the Target field as the SubscriptionHome messaging engine name, Target type field as the Messaging engine name, and Target significance field as Required in the connection factory configuration.
    When connection factory is not connected to the SubscriptionHome messaging engine due to improper connection factory settings, an attempt to create a shared non-durable subscription (createSharedConsumer API) results in the following exception:
     WSIC8025E: Unable to create a shared nondurable subscription for destination <destination name> 
    because the connection factory is not connected to the SubscriptionHome messagaing engine <subscription home messaging engine name>, 
    but connected to the messaging engine <the messaging engine which the connection factory is connecting to>.
  6. Under General Properties, in the Advanced section, set the Share non-durable subscriptions property. Select one of the following options from the list:
    In cluster
    Clients that a re connected to the bus in a cluster member can use the same client identifier and non-durable subscription name, and can retrieve messages from the non-durable subscription.
    Always shared
    All clients, regardless of where they are connected to the bus, can use the same client identifier and non-durable subscription name, and can retrieve messages from the non-durable subscription.
    Never shared
    Clients cannot use the same client identifier and non-durable subscription name as an existing session.

    See the administrative console help for information about the other fields on this page.

  7. Click OK.
  8. 儲存對主要配置所做的變更。

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 11:16
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tjt00010_
檔名:tjt00010_.html