急救。CXF 整合Spring bean 如何配置。请高手赐教。
1: webservice 实现类中。 private SaveInfoService saveinfoservice;
public SaveInfoService getSaveinfoservice() {
return saveinfoservice;
}
public void setSaveinfoservice(SaveInfoService saveinfoservice) {
this.saveinfoservice = saveinfoservice;
}
SaveInfo saveinfo=saveinfoservice.getById(id);
saveinfoservice 这个对象我在spring中进行了管理。
<bean id="saveinfoservice" class="com.omhy.saveinfo.model.service.SaveInfoService">
<property name="saveDao">
<ref local="saveDao" />
</property>
</bean> 程序运行的时候 saveinfoservice 这个对象 这个对象为空。
2:我单独 这样配置。 <jaxws:endpoint id="cxfService" address="/cxfService"
implementorClass="com.omhy.saveinfo.action.IAxisDemoService">
<jaxws:implementor>
<bean id="cxfServiceImpl"
class="com.omhy.saveinfo.action.AxisDemoService">
<property name="saveinfoservice">
<ref bean="saveinfoservice" />
</property>
</bean>
</jaxws:implementor>
</jaxws:endpoint>
那个实现类 根本不能进行访问。 错误信息:unwinding now
org.apache.cxf.interceptor.Fault