GongLe commented on issue #14416:
URL: https://github.com/apache/dubbo/issues/14416#issuecomment-2222392798

   > > Reference here: 
https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/attachment/
   > > It's not a Bug, it's just a logic problem with the built-in Filter in 
the framework in the higher version of dubbo, you're using it the wrong 
way.Please reference herer 
https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/attachment/#%E5%8E%86%E5%8F%B2%E9%81%97%E7%95%99%E9%97%AE%E9%A2%98
   > 
   > Thanks for your reply! I don't understand,How to in consumer side filter 
get provider attachments data , current provider data is available outside the 
method. “ServerContext:在 Client 端和 Server 端使用,用于从 Server 端回传 Client 端使用,Server 
端写入到 ServerContext 的参数在调用结束后可以在 Client 端的 ServerContext 获取到”
   
   After consumer side filter DubboConsumerExceptionFilter#invoke method ,Still 
get no data!
   ```
     @Override
       public Result invoke(Invoker<?> invoker, Invocation invocation) throws 
RpcException { 
           Result invoke = invoker.invoke(invocation);
           if(invoke.hasException()) {
              //.....  get provider attachments data 
           }
           return invoke;
       }
   ```


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