[jboss-user] [JBoss Messaging] - Connection pool for ClusteredConnectionFactory, how to ?

arjan tijms do-not-reply at jboss.com
Fri Jun 18 09:18:49 EDT 2010


arjan tijms [http://community.jboss.org/people/atijms] replied to the discussion

"Connection pool for ClusteredConnectionFactory, how to ?"

To view the discussion, visit: http://community.jboss.org/message/548707#548707

--------------------------------------------------------------
> Tim Fox wrote:
> 
>  http://www.jboss.org/community/wiki/ShouldIcacheJMSconnectionsandJMSsessions http://www.jboss.org/community/wiki/ShouldIcacheJMSconnectionsandJMSsessions

Something that is not entirely clear to me from that wiki page is how to use JMS connection pooling in combination with a remote queue.

In some examples I see that the JMS connection factory is obtained from the JNDI of the remote server, after which the topic or queue is also retrieved from that remote JNDI, and then the message is sent. I.e. this example:  http://blog.emmanuelbernard.com/2008/08/remotely-send-and-consume-messages-with.html http://blog.emmanuelbernard.com/2008/08/remotely-send-and-consume-messages-with.html

However, other code snippets I see obtain a connection from the local connection factory, and then use this local connection with the queue obtained from the remote JNDI. That method is used in this post:  http://community.jboss.org/thread/49409 http://community.jboss.org/thread/49409.

Intuitively it seems awkward to use local connections to reach a remote queue. With this mechanism, does the same pool then contains both local and remote connections? Is it possible at all to create different pools and size these differently? By default there is of course only one java:JmsXA.

Help or pointers would be greatly appreciated.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/548707#548707]

Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100618/8e1e69e3/attachment-0001.html 


More information about the jboss-user mailing list