Skip to content

Just curious: Does Play (Java) stops supporting ThreadLocal after 2.7.x? #12994

Answered by mkurz
tanin47 asked this question in Q&A
Discussion options

You must be logged in to vote

Does this means PlayJava doesn't use ThreadLocal to find out about contextual information anymore?

Exactly, since Play 2.8 ThreadLocal is not used anymore.

What does it use?

Instead, the information that is needed needs to be passed on as parameters. (So what's new is that you can pass the current http request on to action methods).

For further explanation and examples please see: https://www.playframework.com/documentation/latest/JavaHttpContextMigration27

Replies: 1 comment 1 reply

Comment options

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

tanin47 Nov 28, 2024
Author Sponsor

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