-
1. Re: Making Cluster jBoss Messaging Scalable
ataylor Jul 27, 2009 5:52 AM (in response to sjunejo)I have just implemented jBoss messaging in a cluster bearing High availability in mind and its working. I am using MySQL as my shared database. Now I want to scale my setup say If my browser put any message to my Queue (Clustered Queue) it should be get processed by both of my app servers running on different machines and when they get response back they put message back to response queue and my browser knows where to look for response message.... I have an idea about HAJNDI but i am not if this is the correct approach.
I'm not 100% sure I understand what you are trying to do here. It sounds like you are saying that you want a single message to be delivered to both servers? Could you describe in more detail what you are trying to achieve? -
2. Re: Making Cluster jBoss Messaging Scalable
sjunejo Jul 27, 2009 6:12 AM (in response to sjunejo)I am sorry I made a mistake in writting. I mean messages should get processed by both app server.
When my browser put message onto queue jBoss should distribute that message according to load on each server or even round robin fashion or any recomneded policy. In short load balanacing on messaging level (JMS level).
Is it possible???? -
3. Re: Making Cluster jBoss Messaging Scalable
ataylor Jul 27, 2009 6:22 AM (in response to sjunejo)JBM 1.4 will only distribute a message to another node in the cluster if it has no consumers. Messages will always be consumed locally if a consumer exists as this is quicker and makes sense.
-
4. Re: Making Cluster jBoss Messaging Scalable
sjunejo Jul 27, 2009 6:56 AM (in response to sjunejo)Thanks very much.
So it means the jBoss messaging is by-default scalable???
We don't need to apply different settings to reroute messages to other nodes if local queue is not present and jboss messaging will do it auto matically for us.
I have two servers in a cluster both have their own distributed queues. Let say If I delete my request and response queue from one of the node message will be redirected automatically to other node?... I dont have to set any clustered PostOffice or anything???
By the way how to delete a queue once deployed??....Lately I was jut playing around and try to change the 'Clustered' attribute of a deployed and started queue to true and it gives me exception that (something like that)
'Queue property Cluster = true can not be applied as the same queue has already been deployed as Cluster = false. Delete the queue first and then create again.' -
5. Re: Making Cluster jBoss Messaging Scalable
ataylor Jul 27, 2009 8:22 AM (in response to sjunejo)So it means the jBoss messaging is by-default scalable???
yesWe don't need to apply different settings to reroute messages to other nodes if local queue is not present and jboss messaging will do it auto matically for us.
messages will be re routed if no local *consumers* not queues. a clustered queue should exist on each node.I have two servers in a cluster both have their own distributed queues. Let say If I delete my request and response queue from one of the node message will be redirected automatically to other node?
Like i said before, a clustered queue should exist on each node, I'm not sure why you would want to delete them.I dont have to set any clustered PostOffice or anything???
Yes the post office needs to be cluetered as do the queues. -
6. Re: Making Cluster jBoss Messaging Scalable
sjunejo Jul 27, 2009 8:46 AM (in response to sjunejo)hmmm....thats make some sense......could you plz refer some good example for 'Clustered POST Office' implementation as I have already tried one but :-(....
Anyway...Thanks again for the clarification....cheers :-)