cxf webservice 与spring OpenSessionInViewFilter配置求助

在系统中使用cxf做了一个webservice server,求助如何把这个webservice server加到spring OpenSessionInViewFilter的url-pattern中。

生成的webserviceURL如下:
http://ip/root/services/revInsuranceData?wsdl


该如何在web.xml中配置?

目前出现的异常信息如下:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:



已解决:
配置如下:

<filter>
        <filter-name>hibernateFilter</filter-name>
        <filter-
class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
        <init-param>
            <param-name>singleSession</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

<filter-mapping>
        <filter-name>hibernateFilter</filter-name>
        <url-pattern>/services/revInsuranceData</url-pattern>
    </filter-mapping>

你可能感兴趣的:(spring,Hibernate,webservice,CXF)