1 Reply Latest reply on Jul 7, 2010 3:38 AM by jim.ma

    Spring configuration question

    bapats

      JBossWS-CXF looks for jbossws-cxf.xml file for the spring configuration. Is it possible to have additional Spring configuration files to configure non web service tiers with JBossWS-CXF? Since the integration uses its own servlet, where would I add contextConfigLocation param to specify the additional spring configuration files?

        • 1. Re: Spring configuration question
          jim.ma

          Do you try to configure contextConfigLocation param in the same web.xml which contains the ws servlet configuraiton ?

           

          <web-app>
          <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>
          
          <servlet>
              <servlet-name>TestServlet</servlet-name>
              <servlet-class>org.jboss.test.TestServlet</servlet-class>
            </servlet>
            
            <servlet-mapping>
              <servlet-name>TestServlet</servlet-name>
              <url-pattern>/*</url-pattern>
            </servlet-mapping>
          
          <servlet>