messaging
messaging copied to clipboard
New factory methods to create BytesMessage and MapMessage and set the payload
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)
- Issue Imported From: https://github.com/javaee/jms-spec/issues/79
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: Unassigned
@glassfishrobot Commented Reported by @nigeldeakin
@glassfishrobot Commented This issue was imported from java.net JIRA JMS_SPEC-79