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

Allow compression when explicitly instantiating ActiveMQ messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • 1.5.0
    • NMS
    • None
    • Win7

    Description

      When using NMS ActiveMQ provider if one explicitly instantiates an ActiveMQTextMessage you must set the Connection on it explicitly in order for compression to work. This is because when sending the message the UseCompression property is set on the Connection and the Connection is null unless set explicitly.

      Generating an ActiveMQTextMessage off of a Session sets the Connection appropriately. Consider setting the Connection when the producer sends the message so that compression kicks in if the Connection says to UseCompression, if one instantiates his own ActiveMQTextMessage instead of creating it through the Session object.

      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: