Kalle Kärkkäinen wrote:
I'm constructing the broadcast queue like this:

broadcastChannel = session.createQueue(id+"-broadcast");
broadcaster = session.createProducer(broadcastChannel);

and sending stuff to it like this:

JMSTextMessage msg = session.createTextMessage();
broadcaster.send(msg);

In JMS a 'Queue' is for point-to-point communication. For broadcasting you want to use a 'Topic'; that way the consumers on the topic will each see every message sent. (If you use a queue on the other hand each message will be consumed by only on consumer).

Reply via email to