songxiaosheng commented on issue #9985:
URL: https://github.com/apache/dubbo/issues/9985#issuecomment-1119593445

   我来贴一下我测试的代码: 如下代码是我做测试的过滤器不论消费者还是提供者拿到的都是provider
   
   `package link.elastic.dubbo.spi;
   
   import org.apache.dubbo.common.constants.CommonConstants;
   import org.apache.dubbo.common.extension.Activate;
   import org.apache.dubbo.rpc.*;
   
   @Activate(group = {CommonConstants.PROVIDER,CommonConstants.CONSUMER})
   public class MyFilter implements Filter {
       @Override
       public Result invoke(Invoker<?> invoker, Invocation invocation) throws 
RpcException {
           String sideKey = invoker.getUrl().getParameter("side");
   
           return invoker.invoke(invocation);
       }
   }
   `
   再贴个图证明下我的Debug过程
   
   ![Uploading image.png…]()
   


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