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 type、Subscription durability、Acknowledge mode 和 Message selector 等內容。 不論任何一種 Bean 類型,訊息驅動 Bean 連結中所指定的值都可以置換目的地 JNDI 名稱或目的地查閱內容。