关于SOA的客户端配置的含义
client.composite中配置
<component name="NewsUpdateServiceComponent">
<implementation.java class="com.gemantic.sca.analyse.news.client.NewsUpdateSCAClient"/>
<reference name="newsUpdateService">
<scallop:binding.rmi registryName="gemantic-newsupdate-service-rmi" serviceName="NewsUpdateRMIService"/>
</reference>
</component>
NewsUpdateServiceComponent :自定义的名称,但后面配置bean时要用到。
newsUpdateService:NewsUpdateSCAClient中代理依赖的实际对象的名称,需要和其一致。
NewsUpdateRMIService:RMI的名称 。
applicationContext-sca.xml中配置
<bean id="newsUpdateService"
class="com.gemantic.common.sca.service.SCAClientServiceFactory">
<property name="client" ref="scaClient" />
<property name="component" value="NewsUpdateServiceComponent" />
<property name="className"
value="com.gemantic.analyse.news.service.NewsUpdateService" />
</bean>