修改rmi的codec缺省值为spring
git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@210 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
parent
bc68ad7cb0
commit
4c49d48949
|
|
@ -122,8 +122,8 @@ public class RmiProtocol extends AbstractProtocol {
|
|||
private <T> Remote getRemote(final Invoker<T> invoker) {
|
||||
final Class<T> serviceType = invoker.getInterface();
|
||||
final URL url = invoker.getUrl();
|
||||
String codec = url.getParameter(Constants.CODEC_KEY, "default");
|
||||
if (! "spring".equals(codec) && ! "default".equals(codec) && ! "dubbo".equals(codec) && ! "dubbo2".equals(codec)) {
|
||||
String codec = url.getParameter(Constants.CODEC_KEY, "spring");
|
||||
if (! "spring".equals(codec) && ! "dubbo".equals(codec) && ! "dubbo2".equals(codec)) {
|
||||
throw new IllegalArgumentException("Unsupported protocol codec " + codec
|
||||
+ " for protocol RMI, Only support \"default\", \"spring\" codec.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue