Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3641

ActiveMQMessageConsumer dispatches messages while holding mutex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.5.1
    • None
    • JMS client
    • CentOS 5, Sun Java 1.6 64-bit, server mode

    Description

      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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            tinche Tin Tvrtković
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: