How does a JMS Distributed Queue work? Is there any thread concept related to it?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kamala_P
Posted On:   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?

Re: How does a JMS Distributed Queue work? Is there any thread concept related to it?

Posted By:   Laurent_Mihalkovic  
Posted On:   Friday, September 6, 2002 12:24 AM

what is the JMS provider you are using. Once again, JMS is just an API. And the clustering behavior is not described in the JMS specification. please be more specific.

cheers

About | Sitemap | Contact