我们正在尝试使用 HornetQ 在 Jboss AS 7.1 和文档中进行消息传递
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 使用池连接工厂并且正在使用消息(不发送)。
我的理解是池连接工厂是 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,
一些大师可以对此有所了解吗?
谢谢拉玛