you can add an init parameter to your servlet, the cxf bus must already be
loaded by the spring context already thou
<init-param>
<param-name>config-location</param-name>
<param-value>ws.context.xml</param-value>
</init-param>
On Jan 17, 2008 4:59 PM, yulinxp <[EMAIL PROTECTED]> wrote:
>
> All the sample use the following to start Spring and loads beans.xml file.
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>WEB-INF/beans.xml</param-value>
> </context-param>
>
> <listener>
> <listener-class>
>
> org.springframework.web.context.ContextLoaderListener
> </listener-class>
> </listener>
>
> In my existing application, there is a customized springLoader in place.
> Thus I can't use ContextLoaderListener anymore. Neither can I plug in cxf
> into customized springLoader. Is there any otherway to load beans.xml? I
> remember in XFire, we only define servlet-class and servlet-mapping, then
> it
> will automatically look for META-INF/xfire/services.xml. Can we do that in
> CXF? how?
>
> <web-app>
>
> <servlet>
> <servlet-name>XFireServlet</servlet-name>
> <display-name>XFire Servlet</display-name>
> <servlet-class>
> org.codehaus.xfire.transport.http.XFireConfigurableServlet
> </servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>XFireServlet</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
> </web-app>
> --
> View this message in context:
> http://www.nabble.com/CXF-Servlet-setup-problem-tp14924060p14924060.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>