Skip to content

New item in a Map set as an attribute in session are not updated in remote cached session with version 14.0.7 #10736

Answered by thelateperseus
davidmestr asked this question in Q&A
Discussion options

You must be logged in to vote

@davidmestr you can call setSaveMode(SaveMode.ALWAYS) on AbstractInfinispanSessionRepository to ensure that the session is always saved at the end of the request processing. From the Javadoc in SaveMode:

Always save all session attributes, regardless of the interaction with the session. In highly concurrent environments, this mode increases the risk of attributes being overwritten during processing of parallel requests.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davidmestr
Comment options

Answer selected by davidmestr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants