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

roman.mandeleil@gmail.com do-not-reply at jboss.com
Wed Oct 7 06:11:49 EDT 2009


Hi Fellows, 

I am trying to gather some information of connection pooling for JMS.

Let's say I have the following architecture: 


         FrontNode  --->    Node1 <---> Node2


FrontNode gets HTTP trafic and forwards it to Node1, Node2 - cluster over JMS protocol.
The system works great but the question is regarding pooling connectionFactory.createConnection():

Basicaly that code runs on FrontNode:

		Queue queue = (Queue) initialContext.lookup("/queue/MyQueue");
		ConnectionFactory cf = (ConnectionFactory) initialContext
				.lookup("/MyClusteredConnectionFactory");

		connection = cf.createConnection();

Obviously, the create connection is very heavy opperation because it creates the actual socket for the 
message. Two questions:

1) How to configure the pool for the create connection operation ? 
2) The connection factory is been accessed as a stub because it been 
recieved over JNDI so where the configuration for the pool should be applied on the Node1 or on FronNode ?

*) I am using JBoss 5.1 GA


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259095#4259095

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259095



More information about the jboss-user mailing list