Skip to content

Document: Jakarta EE 11: Support Jakarta WebSocket 2.2 #7967

@volosied

Description

@volosied

OpenLiberty/open-liberty#25088


Differences between Jakarta WebSocket 2.2 and 2.1

As 2.2 is a minor release, it only offers incremental improvements.

New Additions:

  • The getSession method has been added to the jakarta.websocket.SendResult class. This allows futures to acquire the associated websocket session easily.

  • The @OnMessage.maxMessageSize annotation cannot be set to a value higher than Integer.MAX_VALUE (2 Gigabytes, in practice) due to type conflict between the annotation (long) and the Session.setMaxTextMessageBufferSize method (int).

Specification Clarification:

  • Automated ping / pong notifications will be an implementation responsibility, not the APIs. As there have been no feature requests, no changes have been made in Liberty.

Removals:

  • All SecurityManager references within the API have been removed to align with the newer JDKs.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions