Community

Connection pool for ClusteredConnectionFactory, how to ?

reply from arjan tijms in JBoss Messaging - View the full discussion

Tim Fox wrote:

 

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

 

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.

 

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

Start a new discussion in JBoss Messaging at Community