You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "linghushaoxia (GitHub)" <gi...@apache.org> on 2019/03/19 02:34:21 UTC
[GitHub] [incubator-dubbo] linghushaoxia commented on issue #284: dubbo的exporterListener扩展有问题
If it is not convenient to upgrade the version, you can't use the latest code. According to the bug of its code, you can "bug the bug"
According to the dev documentation, in the MET-INF folder, after the value of META-INF/dubbo/com.alibaba.dubbo.rpc.ExporterListener is xxx=com.xxx.XxxExporterListener, the startup will throw a mistake and cannot be started.
According to the code bug, the problem is the problem posted by @kinglcc. The reason for the error is that there is no InvokerListener, then the processing method is as follows
1. The current XxxExporterListener implements the InvokerListener interface at the same time, and the method implementation of the InvokerListener is left blank.
2. META-INF/dubbo/com.alibaba.dubbo.rpc.InvokerListener, the value is xxx=com.xxx.XxxExporterListener
This way, you can use the convenience of the ExporterListener without upgrading the framework.
如果不方便升级版本,无法使用最新的代码,根据它的代码的bug,可以 "将bug就bug“
在按照dev文档,在MET-INF文件夹内配置好,META-INF/dubbo/com.alibaba.dubbo.rpc.ExporterListener的值为xxx=com.xxx.XxxExporterListener之后,启动会抛错,无法启动。
根据代码bug来看,问题就是 @kinglcc 贴出的问题。错误原因是,不存在InvokerListener,那么处理方法如下
1. 当前的XxxExporterListener同时实现InvokerListener接口,InvokerListener的方法实现留空。
2. META-INF/dubbo/com.alibaba.dubbo.rpc.InvokerListener,值为xxx=com.xxx.XxxExporterListener
这样子,就可以在不升级框架的情况下,来使用ExporterListener带来的便利。
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/284 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org