Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      Logged on behalf of Philippe Marschall, who posted this to the community alias:
      https://java.net/projects/jms-spec/lists/users/archive/2013-12/message/16

      Since it's time to gather ideas for JMS 2.1 I thought I'd mention this early. I noted that #getBody does not have any conversions defined for StreamMessage. IMHO it would be really convenient if the following conversions where offered:

      • java.io.InputStream (if the message is not in write-only mode)
      • java.io.OutputStream (if the message is not in read-only mode)
      • java.io.Reader (if the message is not in write-only mode)
      • java.io.Writer (if the message is not in read-only mode)

      This would also make it very easy to plug StreamMessage into anything else that does stream oriented IO in Java.

      Obviously #isBodyAssignableTo(Class) would have to be updated as well.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nigel Deakin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: