Configuring an activation specification for the default messaging provider

Configure a JMS activation specification to enable a message-driven bean to communicate with the default messaging provider.

About this task

如果想要利用訊息驅動 Bean,透過「Java™ EE 連接器架構 (JCA) 1.5」來與預設傳訊提供者通訊,您可以建立一個 JMS 啟動規格。JCA 提供在 WebSphere® Application Server 之類應用程式伺服器和企業資訊系統之間的 Java 連線功能。 它提供將 JMS 提供者與 Java EE 應用程式伺服器整合起來的標準方法,並且也提供與企業系統交換資料的架構,以訊息形式來傳送資料。

一或多個訊息驅動 Bean 可以共用單一JMS 啟動規格。

Because a JMS activation specification is a group of messaging configuration properties not a component, it cannot be manually started and stopped. For this reason, to prevent a message-driven bean from processing messages you must complete the following tasks:
  • Stop the application that contains the message-driven bean.
  • Stop the messaging engine.

在相關聯的 EJB 2.1 或更新版本的訊息驅動 Bean 的部署描述子中,適當命名的啟動配置內容,會置換名稱JNDI 名稱目的地 JNDI 名稱目的地查閱,以及鑑別別名以外的所有啟動規格配置內容。 如果是 EJB 2.0 訊息驅動 Bean,部署描述子中對應的元素會置換 Destination typeSubscription durabilityAcknowledge modeMessage selector 等內容。 不論任何一種 Bean 類型,訊息驅動 Bean 連結中所指定的值都可以置換目的地 JNDI 名稱目的地查閱內容。

Procedure

  1. Start the administrative console.
  2. Display the default messaging provider. In the navigation pane, expand 資源 -> JMS -> JMS 提供者.
  3. Select the default provider for which you want to configure an activation specification.
  4. Optional: Change the Scope check box to the scope level at which the activation specification is to be visible to applications, according to your needs.
  5. In the content pane, under the Additional properties heading, click Activation specifications. This lists any existing JMS activation specifications for the default messaging provider in the content pane.
  6. Display the properties of the JMS activation specification. If you want to display an existing activation specification, click one of the names listed.
    Alternatively, if you want to create a new activation specification, click New, then specify the following required properties:
    名稱
    Type the name by which the activation specification is known for administrative purposes.
    JNDI 名稱
    Type the JNDI name that is used to bind the activation specification into the JNDI namespace.
    目的地類型
    目的地查閱
    Type the JNDI name that the message-driven bean uses to look up the JMS destination in the JNDI namespace.

    Select the type of destination on the 目的地類型 property.

    Connection factory lookup
    Type the JNDI name of the connection factory that the message-driven bean uses to look up the connection factory properties and overwrites them in activation specification properties.
    匯流排名稱

    Specify the name of the service integration bus to which connections are made. This must be the name of the bus on which the bus destination identified by the 目的地查閱 property is defined.

    You can either select an existing bus or type the name of another bus. If you type the name of a bus that does not exist, you must create and configure that bus before the activation specification can be used.

  7. Specify properties for the JMS activation specification, according to your needs.
  8. Optional: Specify the JMS activation specification connection properties that influence how the default messaging provider chooses the messaging engine to which your message-driven bean application connects. 依預設,環境會自動將應用程式連接到匯流排上可用的傳訊引擎。 不過,您可以指定額外的配置詳細資料來影響連線程序;比方說,識別特殊的引導伺服器,或是限制只能連線到某些可用傳訊引擎的子群組,或改進可用性或效能,或確保收到之訊息的循序處理。 For information about why and how to do this, see How JMS applications connect to a messaging engine on a bus.
  9. Click OK.
  10. 儲存對主要配置所做的變更。

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



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