Matthew Clark <[EMAIL PROTECTED]> writes:
> 
> I finally have ServiceMix working.. there was nothing wrong with my
> servicemix.xml file - it was just a matter of working through the code a
> little to understand exactly what was needed.
> 
> I never did get it working using the Pure Spring approach, I have
> created a web-app Listener that creates the Application Context using a
> non-validating bean-factory.
> 
> If anyone wants any help configuring ServiceMix, I may be able to offer
> some assistance.. 
>  


Matthew,

Not sure that you need to go through the trouble of creating 
a custom Listener.  All that is necessary here (if you are using the 
spring 1.2.2 dev that is bundled with servicemix) is extending 
XmlWebApplicationContext as in:

public class NotValidatingXmlWebAppContext 
   extends XmlWebApplicationContext {
   
   protected void initBeanDefinitionReader(
        XmlBeanDefinitionReader beanDefinitionReader) {
        beanDefinitionReader.setValidating(false);
   }
}

and then in the web.xml:

<context-param>
     <param-name>contextClass</param-name>
     <param-value>
         com.companyname.NotValidatingXmlWebAppContext
     </param-value>
 </context-param>


When will this be resolved so that we can use latest spring?
This is becoming an issue in evaluating the project.

Thanks,

Andrew

Reply via email to