Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-3188

[docs] The compressLargeMessages URL flag is not honored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • documentation
    • None
    • False
    • False
    • Hide

      If using an app that gives you access to the connection factory object, you can call .setCompressLargeMessages(true) on it. But I don't know of any workaround for applications where that's not possible (eg, JMeter).

      Show
      If using an app that gives you access to the connection factory object, you can call .setCompressLargeMessages(true) on it. But I don't know of any workaround for applications where that's not possible (eg, JMeter).
    • Hide
      1. Create an ActiveMQConnectionFactory with a URL like "tcp://localhost:61616?minLargeMessageSize=1024&compressLargeMessages=true".
      2. Send in a message larger than minLargeMessageSize (>1K in the example above).
      3. See that the contents in the large messages directory on the broker are not compressed.
      Show
      Create an ActiveMQConnectionFactory with a URL like "tcp://localhost:61616?minLargeMessageSize=1024&compressLargeMessages=true". Send in a message larger than minLargeMessageSize (>1K in the example above). See that the contents in the large messages directory on the broker are not compressed.

      If you set the compressLargeMessages flag in the broker URL for the connection factory, it doesn't actually get set. If you increase logging on the client, you can even see a message printed that it is an unrecognized option. The option does work, however, if you get a hold of the connection factory object and call .setCompressLargeMessages(true). So the capability definitely works.

            rh-ee-ataylor Andy Taylor
            jreagan@redhat.com Joshua Reagan
            Petr Matousek Petr Matousek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: