messaging icon indicating copy to clipboard operation
messaging copied to clipboard

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

Open glassfishrobot opened this issue 13 years ago • 3 comments

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)

glassfishrobot avatar Feb 20 '12 12:02 glassfishrobot

  • Issue Imported From: https://github.com/javaee/jms-spec/issues/79
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: Unassigned

glassfishrobot avatar Feb 12 '18 18:02 glassfishrobot

@glassfishrobot Commented Reported by @nigeldeakin

glassfishrobot avatar Feb 20 '12 12:02 glassfishrobot

@glassfishrobot Commented This issue was imported from java.net JIRA JMS_SPEC-79

glassfishrobot avatar May 02 '17 10:05 glassfishrobot