XFireClientFactoryBean的lookupServiceOnStartup属性

XFireClientFactoryBean的lookupServiceOnStartup属性应配置为false

目的在于:在系统启动时,spring不立即查找远程的服务Bean,而在请求该服务时查找

这是为了避免:如果系统启动时不能访问远程服务,系统就无法成功启动,以致崩溃

<bean id="xxxService"
  class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean">
  <property name="serviceClass">
   <value>
    XXXService
   </value>
  </property>
  <property name="wsdlDocumentUrl">
   <value>
    http://xxx/pxxx.ws?wsdl
   </value>
  </property>
  <property name="lookupServiceOnStartup">
   <value>false</value>
  </property>
 </bean> 

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.