jakartaee / jakartaee/messaging
New factory methods to create BytesMessage and MapMessage and set the payload
- Dominant language
- Java
- Stars
- 49
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
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)
```
Contributor guide
Research direction
Start by reading the JMS 1.1 Session factory methods named in the issue and locating the corresponding Session and MessagingContext API definitions. Determine how the proposed byte-array and map-payload methods fit those interfaces, then verify that the new API is specified consistently and covered by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100