zrlw opened a new issue #8567: URL: https://github.com/apache/dubbo/issues/8567
### Environment * Dubbo version: 2.7.13 * Operating System version: centos7 * Java version: 1.8 * nacos 1.4.2 ### Steps to reproduce this issue 一个springboot工程里有两个组件ClientA, ClientB,分别reference了同一个dubbo服务S,调用S的方法execute分别设置了不同的回调方法: ``` @Component public class ClientA { // 回调组件callbackA @DubboReference( async = true, methods = @Method(name = "execute", onreturn = "callbackA.onReturn")) DubboService s; public void callS(...) { s.execute(...); } } @Component public class CallbackA { public void onReturn(...) { } } @Component public class ClientB { // 回调组件callbackB @DubboReference( async = true, methods = @Method(name = "execute", onreturn = "callbackB.onReturn")) DubboService s; public void callS(...) { s.execute(...); } } @Component public class CallbackB { public void onReturn(...) { } } ``` ### Expected Result ClientA调用S的execute方法返回后,回调CallbackA的onReturn,ClientB调用S的execute方法返回后,回调CallbackB的onReturn。 ### Actual Result 无论ClientA,还是ClientB,调用S的execute方法后,始终只调用CallbackA或CallbackB中的一个onReturn方法(具体调用哪个貌似和加载顺序有关)。 -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org