Is there any plans to implement JEP 506: Scoped Values? #3695
Unanswered
alexinsmail
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I understand that the question is more about moving to Java 25 and above.
As an example, the SqlSessionManager class uses ThreadLocal. Multiple virtual threads can run on the same system thread (JEP 444 JDK 21). To separate resources (database connections), use ScopedValue (JEP 509 JDK 25).
It would be possible to split the project, as they did in bunsycastle. The jdk version was added at the end of the name. It would look like this mybatis-jdk18on-3.XXX.YYY.jar , mybatis-jdk25on-3.XXX.YYY.jar,
All reactions