activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tin Tvrtković (Created) (JIRA) <>
Subject [jira] [Created] (AMQ-3641) ActiveMQMessageConsumer dispatches messages while holding mutex
Date Tue, 20 Dec 2011 10:17:30 GMT
ActiveMQMessageConsumer dispatches messages while holding mutex

                 Key: AMQ-3641
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.5.1
         Environment: CentOS 5, Sun Java 1.6 64-bit, server mode
            Reporter: Tin Tvrtković

I'm using async message dispatch.

I've noticed the ActiveMQMessageConsumer class dispatches messages to its listeners while
holding a mutex (method name: dispatch(MessageDispatch md), mutex name unconsumedMessages).
This mutex needs to be grabbed in other situations as well (like closing the connection),
which can lead to deadlocks. Is this really the best way of handling this?

I realize I can get around this problem in a number of ways, but this issue seems to be pretty
deep in the client infrastructure, especially if another JMS framework is being used (like
Spring JMS).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message