The current maxMessageSize annotation javadoc doesn't say when we can use this annotation and what is the behaviour on specified endpoints. E.g. can I supply maxMessageSize for stream as well ?
this should correspond to the semantics of the session.getMaxTextMessageBufferSize().
I read back the original request. For this version, the attribute only applies when annotating methods that take the whole message, not for partial message processing handlers or those using Readers or InputStreams. The javadoc has been appropriately updated.