Could multiple consumers attach to a JMS queue simultaneously?

Could a JMS message queue have multiple consumers simultaneously? If can, how to implement that? My experiences showed that at any time there is only one consumer allowed for a JMS message queue. If a subsequent consumer tried to attach to the same queue, the following exception would be thrown out:

=====================================================

javax.jms.ResourceAllocationException: [C4073]: A JMS destination limit was reached. Too many Subscribers/Receivers for Queue : PhysicalQueue user=guest, broker=CTPLIT015PC:7676(1462)======================================================

On the contrary, definitely multiple consumers can be attached to the same Topic.

[706 byte] By [liaodongyana] at [2007-10-2 20:31:04]
# 1
Y do u need multiple consumer's to a queue? The purpose of the queue itself is to deliver the message to single consumer. If you need more than one consumer, you should be using topic instead.
enigma_y2k1a at 2007-7-13 23:14:12 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Well I need tor receive a message only once and this is why I would still have to use a queue. I have heard selector are slow so I do not want to use them.

Now the problem is since I am using onMessage event; the message push is like 150 message/second. While the message dequeue process always stuck up at 14 message/second.

I really need to increase the speed some good number may be 50 messages/second. I need to know whether I need to setup a threadmanager (with threadpool) in onMessage event, or I need to create multiple queue session.

If I create multiple queue session what would be the behavior of queue?

My main concern is to get this number up.

regards

shantanu

shantanu.singha at 2007-7-13 23:14:12 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Hi,What about increasing the number of MDBs in your pool? You actually get more threads working for you.R
robert@javixa at 2007-7-13 23:14:12 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
Can you explain by an example. RegardsShantanu Chauhan
shantanua at 2007-7-13 23:14:12 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...