|
Hi all! I am trying to get started with ServiceMix and I try to start the container embedded within a Spring application context. However, I have difficulties understanding how XBean works comparing with the standard namespace mechanism in Spring. The first thing that surprise me is that in the examples provided in the site, the xsi:schemaLocation attribute is not present. Also, in the spring.schemas files, the keys are not the URI's to a schema file, but the namespace it self: http\://servicemix.apache.org/config/1.0=servicemix.xsd and not something like http\://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd in Spring distribution. I am trying to run this example: <sm:container id="jbi" embedded="true"> <sm:endpoints> <jsr181:endpoint pojoClass="org.apache.servicemix.itests.beans.Echo" service="test:Hello" endpoint="testService" /> <http:endpoint service="test:Hello" endpoint="testService" role="consumer" defaultOperation="echo" locationURI="http://localhost:8194/Service/" soap="true" /> </sm:endpoints> </sm:container> and I get this error: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'sm:container'. Is ServiceMix supposed to work within a Spring 2.0 application context? Or should I create a XBean specific Spring application context? Thanks a lot for your answers! Cristian |
- ServiceMix namespaces in Spring application context Cristian Pascu
- Re: ServiceMix namespaces in Spring application conte... Guillaume Nodet
