We are using wildfly 9.0.1 and load balancer Kemp LoadMaster Version 7.2.48.1.17992.RELEASE.
We have used HornetQ in WildFly without clustering.
We are sending a message in hornet queue via an external load balancer. We have two separate hornet queues and two application server. Both applications are sending a message to HornetQ via a load balancer.
We are making a single object javax.jms.ConnectionFactory
when an application starts up and object javax.jms.Session
each time when sending a message in the queue.
We are facing one issue when we start the application and sending messages one by one to the HornetQ via the load balancer, at that time each message goes to the same hornet queue.
Actually, each message has to pass in different HornetQ (as per the load balancer mechanism) if we are using a load balancer.
Note: In case of any HornetQ will down then load balancer will send a message to another active HornetQ. We faced Problem only when every HornetQ is active.
Any suggestion to avoid this issue?