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

Allow to retrieve the JMSProperties when using JMS Stream (ActiveMQInputStream)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.4.2
    • Broker
    • None

    Description

      When using JMS Streams (aka ActiveMQInputStream and ActiveMQOutputStream) its impossible to retrieve the used JMS Properties which where used while writing the OutputStream. The only method which allows this is the ActiveMQInputStream.receive() method. But this will corrupt the InputStream because it will remove the Message from it.

      So I think it makes sense to add a method for retrieving the Properties. I also think the receive() method should be private or protected to guard against wrong usage ( I used it before to retrieve the properties and wondered why it corrupted the stream).

      Attachments

        1. AMQ-2988_junit.diff
          5 kB
          Norman Maurer
        2. ActiveMQInputStream_JMSProps.diff
          2 kB
          Norman Maurer

        Activity

          People

            tabish Timothy A. Bish
            norman Norman Maurer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: