1 Reply Latest reply on Jul 7, 2010 3:38 AM by Jim Ma

    Spring configuration question

    S Bapat Newbie

      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 Apprentice

          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>