I have searched the forum and did not specifically find answer to my particular problem, though there were lot of other pointers that i got.
It would be nice if someone can clearly provide me some direction.
Here is my problem
I have one windows desktop and i am running two JBOSS instances in it (using port bindings i am running these two instances with different ports). I have hornetq on both these instances within JBOSS. I have configured unique acceptor ports for both the hornetq servers so they dont clash. I am providing my hostname (which is say xyz , same machine thats why) in the acceptor and connectors in both configuration.
Now i turn on the clustered property to true and provide clustering settings. First instances points to second and second points to first - note that i am using static connectors and not UDP.
Now i have third JBOSS instance on my same machine which works as a client for these two clustered instances. This client instance sends messages to one of the clustered servers using Core Bridge (i am using local queues on client instance which forward message to the remote queues on instance 1). Since instance 1 and 2 are clustered i expect that the messages should be load balanced round robin. But unfortunately only instance 1 recieves all the messages and instance 2 does not recieve messages at all.(note that i have consumers on both instances)
The following is what i have verified.
1. Both hornetq instances are running on unique ports.
2. Both can individually accept messages
3. While starting JBOSS it correctly shows that the instances are started with clustered=true
4. connection between both the instance is good (becos when i shutdown any instance the other instance automatically complains that it cannot connect)
now i think because i am using same hostname in both instance connectors and acceptors the balancing/distribution might not be working. I want to know whether i am right.
So to work with clustering hornetq needs that both the hornetq servers are on different IP addresses and cannot be on the same IP address.is this statement true ??
I hope i have explained my problem satisfactorily. Also i have read hornetq thoroughly and am able to get lot of things working, so even if i am a newbie i know what problems to look for. But this particular problem is beyond my understanding and hence i request someone from the hornetq dev team to help me out.
Thanks for your time and help in advance.
Message was edited by: Yogesh Bhate Had some irrelavant content at the end..removed that.