activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: is tens of thousands of session feasible?
Date Thu, 06 Mar 2014 07:33:40 GMT

Have you seen this page about unsubscribe from mailing lists

On Thu, Mar 6, 2014 at 12:08 AM, Erik S. Peterson
<> wrote:
> Sorry to hijack this thread, but after several attempts, unsubscribe from this list continues
to fail. Please unsubscribe my email from this list.
> On Mar 5, 2014, at 2:08 AM, Noel OConnor <> wrote:
>> have you seen ActiveMQSession.INDIVIDUAL_ACKNOWLEDGE
>> see
>> On Wed, Mar 5, 2014 at 6:48 PM, Li Li <> wrote:
>>> hi all,
>>>     I want to process a batch of message using my own priority
>>> algorithm. But in JMS, I can't acknowledge a single message and can
>>> only acknowledge a session. So I decide to do it like this:
>>>     1. Create N(=10000) sessions
>>>     2. using a thread to manage session acknowledge like:
>>>             for(int i=0;i<N;i++){
>>>                 if session acknowledged{
>>>                       receive A Message without waiting;
>>>                       put this message to my own priority queue;
>>>                 }
>>>             }
>>>      3. using another thread to process my own queue;
>>>             get a message from my own queue;
>>>             process this message;
>>>             get the session of this message;
>>>             acknowledge this session;
>>>       because a session will receive only a message a time and it
>>> will be blocked until this message is processed. I need create many
>>> sessions(maybe I can make session a pool) . I don't know whether
>>> activemq can deal with so much session. for a single consumer, I will
>>> create 10000 session. if I have ten consumers, then 100,000 session be
>>> created at the same time.
>  NOTICE: This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review, use, disclosure
or distribution is prohibited. If you are not the intended recipient, please contact the sender
by reply email and destroy all copies of the original message.

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:
Make your Camel applications look hawt, try:

View raw message