jms-spec
  1. jms-spec
  2. JMS_SPEC-79

New factory methods to create BytesMessage and MapMessage and set the payload

    Details

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

      Description

      In JMS 1.1 the following methods on Session can be used to create a ObjectMessage or TextMessage and set the payload at the same time:

      createObjectMessage(Serializable object)
      
      createTextMessage(String text)
      

      However there are no equivalent methods for BytesMessage and MapMessage. It is therefore proposed that the following new methods be added to Session (and MessagingContext):

      createBytesMessage(byte[] bytes)
      
      createMapMessage(Map map)
      

        Activity

        Nigel Deakin created issue -
        Nigel Deakin made changes -
        Field Original Value New Value
        Tags pd20-planned
        Nigel Deakin made changes -
        Tags pd20-planned
        Nigel Deakin made changes -
        Tags pd20-forreview
        Nigel Deakin made changes -
        Tags pd20-forreview
        Nigel Deakin made changes -
        Tags pd20-forreview-minor

          People

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

            Dates

            • Created:
              Updated: