pangshuqiang opened a new issue #8365:
URL: https://github.com/apache/dubbo/issues/8365


   - [* ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   - [ ] I have checked the 
[FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository 
and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.1
   * Operating System version: all
   * Java version: 11
   
   ### Steps to reproduce this issue
   
   1. 在Dubbo3.0.1,对 `RpcContext.getContext()` 提示` 'getContext()' 已经过时了`;
   2. 更换成 `RpcContext.getServerContext()` 
,在Consumer设置setAttachment值,从Provider获取getAttachment值为空 null ;
   
   Consumer
   
![图片](https://user-images.githubusercontent.com/28327645/127425198-85e54845-8d57-4b63-b077-6457539dd271.png)
   
   
![图片](https://user-images.githubusercontent.com/28327645/127425037-b3b2a397-ba5f-4c03-ab01-2a8b5bd1e66b.png)
   
   Provider
   
![图片](https://user-images.githubusercontent.com/28327645/127425235-d0ca8e61-4f4d-4409-b728-fd51b8eb8a9d.png)
   
   
![图片](https://user-images.githubusercontent.com/28327645/127424539-47df3263-a6d2-4201-8acd-7c323fc4245b.png)
   
   不知道是不是我使用的 “RpcContext.getServerContext()” 不对?还是说新版的需要通过实现Listener才行?
   
   还望指点指点,谢谢。
   


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to