Monday, August 26, 2002 12:18 AM
I wrote a servlet that puts 10 ObjectMessages into a distributed queue. This distributed queue has 2 physical queues as members which belong to JMS servers on different machines in cluster. Now the distributed queue has to do the load balancing, by distributing mesages between both the queues. But this does not happen. Each time I invoke the servlet all the 10 messages are sent to one member queue, either one.
When I used a java class instead of a servlet to put the message, it worked if I use a separate thread to put each message of the 10 messages. But this solution does not work for servlets. Why is it? Is there any other way out?