Skip to content

Commit

Permalink
* 放松校验限制,允许tcc型service作为普通service被远程dubbo服务调用
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyangming committed Mar 25, 2017
1 parent 2064227 commit 51b1773
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,20 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
} else if (com.alibaba.dubbo.config.spring.ServiceBean.class.equals(beanClass)) {
MutablePropertyValues mpv = beanDef.getPropertyValues();
PropertyValue ref = mpv.getPropertyValue("ref");
PropertyValue group = mpv.getPropertyValue("group");

RuntimeBeanReference beanRef = (RuntimeBeanReference) ref.getValue();
String refBeanName = beanRef.getBeanName();
if (compensableMap.containsKey(refBeanName) == false) {
continue;
}

if (group == null || group.getValue() == null //
|| ("org.bytesoft.bytetcc".equals(group.getValue())
|| String.valueOf(group.getValue()).startsWith("org.bytesoft.bytetcc-")) == false) {
continue;
}

serviceMap.put(beanName, beanDef);
} else if (com.alibaba.dubbo.config.spring.ReferenceBean.class.equals(beanClass)) {
MutablePropertyValues mpv = beanDef.getPropertyValues();
Expand Down

0 comments on commit 51b1773

Please sign in to comment.