Configuring JMS activation specification properties for durable subscriptions

Use this task to configure durable subscription properties of JMS activation specifications for use by message-driven beans with the default messaging provider.

About this task

To enable a message-driven bean (MDB) application to create durable subscriptions on JMS topics with the default messaging provider, you set a number of properties on the JMS activation specification used by the application.

If applications use message-driven beans to create durable subscriptions, you should set the properties on the JMS activation specification used by the message-driven beans, as described in this topic. Otherwise, for enterprise beans to create durable subscriptions, you should set the properties on the JMS connection factory as described in Configuring JMS connection factory properties for durable subscriptions.

Note: 傳訊服務利用 WAS_HOME/temp 目錄中的 server_name-durableSubscriptions.ser 檔來追蹤訊息驅動 Bean 的可延續訂閱。 如果您解除安裝包含訊息驅動 Bean 的應用程式,則使用這個檔案來取消訂閱可延續的訂閱。如果您必須刪除 WAS_HOME/temp 目錄或其中的其他檔案,請務必保留這個檔案。

To configure the durable subscription properties to a topic for use by message-driven beans with the default messaging provider, use the administrative console to complete the following steps

Procedure

  1. Display the default messaging provider. In the navigation pane, click 資源 -> JMS -> JMS 提供者.
  2. Select the default provider for which you want to configure activation specification properties.
  3. Optional: Change the Scope check box to set the level at which the connection factory is to be visible, according to your needs.
  4. In the content pane, under the Additional properties heading, click Activation specifications. This displays any existing JMS activation specifications for the default messaging provider in the content pane.
  5. Click the name of the activation specification you want to configure. This displays the properties for the activation specification in the content pane.
  6. Specify the following properties for the activation specification:
    用戶端 ID
    This is the JMS client identifier that applications use to identify durable topic subscriptions created on all connections tht use this activation specification. For more information about client identifiers, see section 4.3.2 of the JMS 1.1 specification.
    訂閱首頁

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

    訂閱延續性
    To be able to create durable subscriptions, set this property to 可延續.
    訂閱名稱

    Each JMS subscription is identified by a subscription name (specified on this property). A JMS connection also has an associated client identifier (specified on the Client identifier property), which is used to associate a connection and its objects with the list of messages (on the durable subscription) that is maintained by the JMS provider for the client.

    This subscription name must be unique within a given client identifier.

  7. Specify the properties for the activation specification, according to your needs.
  8. Click OK.
  9. 儲存對主要配置所做的變更。

What to do next

When applications have created durable subscriptions, you can use the administrative console to manage the runtime state of those subscriptions, as described in Administering durable subscriptions.

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



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