activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashoknan <>
Subject Re: ActiveMQ producer/consumer hangs when on of the consumer didn't respond
Date Fri, 20 Mar 2009 15:11:23 GMT

Thanks Gary for your response..We have a prefetch of

The thing which i am not sure ,why when one of the Consumer got the stuck in
the smtp response other consumer for the same selector is stuck.(I have 5
Conusmer for the same selector). Not only the consumer got stuck the entire
producer/consumer is stuck(Attachment has thread stack).  See the queue stat
when the  entire producer/consumer is stuck.

Is it because that particular consumer is holding the shared connection?

Also i am thinking whether setting the SMTP timeout will avoid the thread
getting stuck forever and it may not block the connection.

Does it make sense?

Gary Tully wrote:
> Prefetch <>
> is
> the problem with pooling consumers.  A consumers pre-fetched messages,
> when
> that consumer is in a pool, may stay there till the pool is closed and
> will
> not be available to other consumers.
> 2009/3/20 ashoknan <>
>> Am i not supposed to use PooledConnectionFactory for consuming
>> messages.See
>> the below Java Doc
>> A JMS provider which pools Connection, Session and MessageProducer
>> instances
>> so it can be used with tools like Spring's JmsTemplate. NOTE this
>> implementation is only intended for use when sending messages. It does
>> not
>> deal with pooling of consumers; for that look at a library like Jencks
>> such
>> as in this example
>> I am not sure whether this is outdated.
>> Please let me know if anyone faced this issue before
>> --
>> View this message in context:
>> Sent from the ActiveMQ - User mailing list archive at
> -- 
> Open Source SOA

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message