activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Pechorin <ivan.pecho...@gmail.com>
Subject Re: ActiveMQ CPP : Same message being consumed by two consumers
Date Tue, 22 Nov 2011 18:14:12 GMT
2011/11/22 manua <agarwal.manu@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.

Mime
View raw message