You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Jakarta Messaging has its own text and binary message definition, and WebSocket supports InputStream, String, StringReader, etc. We can get the inspiration from Spring framework, Spring Integration, etc to unite the messaging model.
Use headers/body or properties/payload to describe a message at runtime.
With the message conversion #1023 support, in Jakarta Messaging and WebSocket, we can use a simple type-safe approach to get the message payload directly.
Jakarta Messaging and WebSocket can adapt the Message to simplify the development for developers. In WebSocket lifecycle hook methods or Jakarta messaging listener methods, it can accept the message headers and payload as parameters directly.
publicvoidonMessage(
@HeadersMap<String, Object> headers,
@PayloadMyObjectpayload
)
publicvoidonMessage(Messagemessage)
publicvoidonMessage(MyObjectpayload) // none `Message` type, it is a payload directly
And headers and payload should be available in the Jakarta Messaging Lisneter selector EL as described in jakartaee/messaging#243 (comment)
The text was updated successfully, but these errors were encountered:
Currently, Jakarta Messaging has its own text and binary message definition, and WebSocket supports InputStream, String, StringReader, etc. We can get the inspiration from Spring framework, Spring Integration, etc to unite the messaging model.
Use headers/body or properties/payload to describe a message at runtime.
With the message conversion #1023 support, in Jakarta Messaging and WebSocket, we can use a simple type-safe approach to get the message payload directly.
Jakarta Messaging and WebSocket can adapt the Message to simplify the development for developers. In WebSocket lifecycle hook methods or Jakarta messaging listener methods, it can accept the message headers and payload as parameters directly.
And
headers
andpayload
should be available in the Jakarta Messaging Lisneterselector
EL as described in jakartaee/messaging#243 (comment)The text was updated successfully, but these errors were encountered: