activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose María Zaragoza <demablo...@gmail.com>
Subject Re: Model thread question
Date Wed, 04 Sep 2013 20:20:01 GMT
Thanks.

So , PDF is wrong , right ?
what about pool of thread , i.e, one per MessageConsumer ? is it false ?
does internal queues exists ?

I'm confuse , sorry



2013/9/4 Christian Posta <christian.posta@gmail.com>:
> AFAIK...you have a logical thread for the transport that pulls data off the
> socket, and then a thread for each session. So a single session can have
> multiple consumers, but a single session thread would dispatch to the
> consumers.
>
>
> On Wed, Sep 4, 2013 at 11:17 AM, Jose María Zaragoza
> <demablogia@gmail.com>wrote:
>
>> Hello:
>>
>> I'm using Apache ActiveMQ 5.8 and I've got a question about thread
>> model on consumer side
>> I don't know either there is a thread pool per MessageConsumer or
>> there is a only one thread
>>
>>
>> About this link
>>
>> http://activemq.apache.org/multiple-consumers-on-a-queue.html
>>
>> "The JMS contract is that only 1 session is used by one thread at once
>> - which if you're using consumers means that only 1 consumer can
>> receive messages at once if using the same session. So if you want
>> concurrent consumption of messages, you need to use different sessions
>> for each consumer."
>>
>>
>> But about this link
>>
>> http://fusesource.com/docs/esbent/7.0/amq_tuning/amq_tuning.pdf
>>
>> "The second thread layer consists of a pool of threads, where each
>> thread is associated with a javax.jms.MessageConsumer instance. Each
>> thread in this layer picks the
>> relevant messages out of the session queue, inserting each message
>> into a queue inside the javax.jms.MessageConsumer instance."
>>
>>
>> What is the true ?
>>
>> is there a thread pool per MessageConsumer ? or is there a only one thread
>> ?
>>
>>
>> Thanks and regards
>>
>
>
>
> --
> *Christian Posta*
> http://www.christianposta.com/blog
> twitter: @christianposta

Mime
View raw message