liubao68 commented on issue #2453:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2453#issuecomment-874567817


   要结合业务场景分析下解决方案。单纯从技术角度来讲,使用异步的情况下, 不要使用 ThreadLocal, 
或者业务能够完整控制各个地方的线程切换,并在线程切换的时候,清理本线程的ThreadLocal并合理设置下一个线程的ThreadLocal。 
   
   多数的拦截截止,可以使用java-chassis提供的 `Handler` 或者 `HttpServerFilter` 等, 使用 
InvocationContext, java-chassis会处理InvocationContext 的传递。 
参考:http://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/build-provider/context-param.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to