2013-11-15 68 views
3

我們正在使用的HornetQ上的JBoss Messaging 7.1和文檔試圖在爲什麼沒有Jboss AS 7.1與Hornet Que - 消息驅動Bean使用池連接?

https://docs.jboss.org/author/display/AS71/Messaging+configuration

還有一個池連接工廠這是特殊的,因爲它利用了HornetQ的的出站適配器JCA資源適配器。這也是特殊的,因爲:

* It is only available to local clients, although it can be configured to point to a remote server. 
* As the name suggests, it is pooled and therefore provides superior performance to the clients which are able to use it. The pool size can be configured via the max-pool-size and min-pool-size attributes. 
* It should only be used to send (i.e. produce) messages. 
* It can be configured to use specific security credentials via the user and password attributes. This is useful if the remote server to which it is pointing is secured. 

是有道理的,除了第三顆子彈它說

*它應該只被用來發送(即農產品)消息每一件事情。

我的mdb使用Pooled連接工廠並正在使用消息(不發送)。

我的理解是Pooled連接工廠是MDB應該使用的更好性能。此外HornetQ的作者說,

http://hornetq.blogspot.com/2011/06/hornetq-on-jboss-as7.html

The pooled connection factories also define the incoming connection factory for MDB's, 
the name of the connection factory refers to the resource adapter name used by the MDB, 

一些大師的可以扔在這一些輕?

感謝 拉瑪

+0

我試過你的塊爲Sso siteminder,很好的教程。我不知道在哪裏下載siteminder軟件,無論你在你的post.Please提及。請讓我知道。我的emailid是[email protected] – sunleo

回答

3

這是我們儘量讓用戶更容易,但還是有些混亂。

的JCA適配器指定入站連接和出站連接...

入站連接由MDB和outBounds用於通過使用JNDI和實例化的連接完成。

入站連接,不需要集中例如,他們只是實例化了消費者對多邊開發銀行只要你有一個MDB熬夜......

我們一直在工廠的PooledConnection定義來定義的MDB但下面有一些事情發生,正如我所說的。

所以,我們可以將你提到的這個項目改寫成更好的解釋。

+0

謝謝克萊貝爾。讚賞你的快速反應。 – Reddymails

+0

現在,爲什麼MDB不需要使用連接工廠。 – Reddymails