Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-218

NMS session should dispose appropriately if listener delegate still processing message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • NMS
    • None
    • ActiveMQ 5.2

    Description

      We have a unit test working with NMS 1.1 and not with NMS 1.2.

      It appears that in v1.2 on Session.Dispose the consumer thread is not aborted properly. If I'm processing a message say that takes 2 minutes to complete and try and dispose the session it waits the full two minutes.

      With v1.1 if disposing on the session, it aborted after a timeout of 30s. Calling dispose on the message consumer directly would behave as calling dispose on the session is in v1.2.

      This is a problem if the consumer runs in a windows service as the SCM errors out when a user tries to shut down the service.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            magellings Mark Gellings
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: