[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - HAConnectionFactory UseCase question
clebert.suconic@jboss.com
do-not-reply at jboss.com
Mon Nov 27 15:08:29 EST 2006
I have to define what's the UseCase on HAConnectionFactory.
I could either define the load balancing policy on jndi.lookup or connectionFactory.createConnection.
Let me explaing through examples:
On these examples I have serverA, B and C. Immagine subsequent calls to either jndi.lookup or factory.createConnection doing a load balancing. (Round Robbin probably)
Example I:
connectionFactory.createConnection(); << returns a connection pointing to server A
| connectionFactory.createConnection(); << server B
| connectionFactory.createConnection(); << server C
|
Example II:
| ConnectionFactory factoryA = jndi.lookup(); // this connection will always point to A
| ConnectionFactory factoryB = jndi.lookup(); // this connection will always point to B
| ConnectionFactory factoryC = jndi.lookup(); // this connection will always point to c
|
We could implement it either way. At this point I have assume Example I, but we need to define if this is the correct behavior.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989029#3989029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989029
More information about the jboss-dev-forums
mailing list