How can ensure that in a multi thread env each message has consumed once?

Hi

Thank you for reading my post

can some one please explain that how we can ensure that our messages which are inside the queue has just consumed once?

imagine that we have tens of thread which each of them has a connection and a listener are listening on a queue, how does jms manage this all threads and connection and

ensure that each message has just delivered to one of those threads?

Thanks

[435 byte] By [Legolas.wa] at [2007-11-27 3:41:45]
# 1
You don't need to do anything to ensure that a message will only be delivered once to a client if the destination is a queue; as defined by JMS Point-to-Point Model, i.e. Queue.
imittya at 2007-7-12 8:45:18 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...