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
When I upgraded my Cargotracker fork to Jakarta EE 11, I encountered an issue with JMS: If the record does not implement Serializabile, it will throw an exception when the message payload is a record or includes a record field.
A simple Serializable requirement is unreasonable for modern applications.
We must consider global message codecs(which support JSON, Cbor, Probuff, XML, etc.) and type converters(which convert between different types) for HTTP and message protocols to unite the behaviors and allow developers to apply them to the current REST, Websocket, Messaging, Faces, etc.
I think the first step is to unite the message codecs in WebScoket and JMS and make the message payload encode/decode configurable.
The text was updated successfully, but these errors were encountered:
For context, currently ObjectMessage requires a Serializable payload. I think the suggestion here is to look to modernize message body conversion. There is a related idea suggested here some time ago: #243 (comment).
@m-reza-rahman I hope Jakarta EE 12 will consider the message definition(headers or properties, body or payload), codecs(high-level encode/decode as JSON, XML, Corb, Probuff, etc), and type conversion(for body property) for message-like specs, such as WebSocket, JMS, and future gRPC, in the common spec(in the Jakarta issues, and maillist, I saw the discussion of this, but never created a proposal for it).
When I upgraded my Cargotracker fork to Jakarta EE 11, I encountered an issue with JMS: If the record does not implement
Serializabile
, it will throw an exception when the message payload is a record or includes a record field.A simple
Serializable
requirement is unreasonable for modern applications.We must consider global message codecs(which support JSON, Cbor, Probuff, XML, etc.) and type converters(which convert between different types) for HTTP and message protocols to unite the behaviors and allow developers to apply them to the current REST, Websocket, Messaging, Faces, etc.
I think the first step is to unite the message codecs in WebScoket and JMS and make the message payload encode/decode configurable.
The text was updated successfully, but these errors were encountered: