[JBoss Messaging] - Re: Message redistibution between 2 MDB's
by timfox
To elaborate on what Clebert has already said - also I think this has been covered before on other threads.
JBoss Messaging has "connection load balancing" - this means that if you use a connection factory with the attribute "supportsLoadBalancing" set to true, then subsequent create connection attempts will be made on different nodes of the cluster in a round robin fashion, the first node is chosen randomly.
This gives an even distribution of connections across the cluster.
If you have a clustered queue deployed on all nodes of the cluster, and a MDB consuming on all nodes from that queue, and you send a message via one of the connections you created to one of the nodes, then, if the local MDB exists and is not busy , JBM will always *favour* the local MDB. There is no point in the message being processed on another node if it can be happily processed on the local node (it's a waste of network hops).
Here's the bit Clebert did not mention: If the local MDB does not exist or is busy, and another MDB on another node for the same queue is idle then the remote MDB can pull messages from other nodes - this is called "message redistribution".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143077#4143077
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143077
18 years
[Beginners Corner] - JBoss Web server - port change
by scenage
Hi guys,
I have JBoss running as a web server at the moment in conjunction with HP/Mercury Quality Center. Currently, I am trying to change the port that HP Mercury Quality Center is running on. I have contacted HP/Mercury but they won't touch the request and have advised not to fiddle with the current settings thats why I'm here :P
I am wanting to know what config files I would need to change (from the JBoss perspective) so that the current JBoss web server will work with a different port number. I am unsure as to if there is one configuration file that lists a port configuration setting or if there are many different files I will have to change.
My current configuration is as follows:
JBoss Version: 4.0.2(build: CVSTag=JBoss_4_0_2 date=200505022023)
JBoss Version Name: Zion
JVM Version: 1.4.2-b28 (Sun Microsystems Inc.)
JVM Name: Java HotSpot(TM) Server VM
Any help will be greatly appreciated.
Cheers,
Pat
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143062#4143062
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143062
18 years