Thanks for responding Andrew, I tried extending the XmlWebApplicationContext and had some issues but by this time I had been round in several circles and had been simultaneously deciding whether to use pure spring or the extended spring....
The custom Listener was not exactly a chore to create but I'll happily get rid of it if it turns out to be unnecessary.. Regards, Matthew. -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Wertkin Sent: 08 September 2005 18:44 To: [email protected] Subject: Re: [servicemix-user] Example needed - instantiating ServiceMix Client 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 This message has been scanned for viruses.
