2011/11/22 manua <agarwal.m...@gmail.com>:

> Each consumer is running in a different thread, though listening on the same
> queue.
> We dont see any concurrent access.

Consumers always belong to some session; session is thread-specific
(this is a generic principle of JMS, and as far as I know it's valid
both for ActiveMQ-C++ and for Java).

Therefore, you can't just create two consumers from the same session
and use them concurrently from different threads, because that would
effectively mean concurrent access to the session that owns these
consumers.

Reply via email to