提交 057e0cd0 编写于 作者: W william.liangf

修改RMI兼容

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@304 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 0cb06feb
......@@ -142,7 +142,13 @@ public class RmiProtocol extends AbstractProtocol {
public <T> Invoker<T> refer(Class<T> serviceType, URL url) throws RpcException {
Invoker<T> invoker;
try {
RmiProtocol.getRemoteClass(serviceType);
try {
if ("dubbo".equals(url.getParameter("codec"))) {
RmiProtocol.getRemoteClass(serviceType);
}
} catch (Throwable t) {
logger.warn(t.getMessage(), t);
}
Registry registry = LocateRegistry.getRegistry(url.getHost(), url.getPort());
String path = url.getPath();
if (path == null || path.length() == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册