PDA

View Full Version : Simple working example of spring-integration-amqp



jamescarr99
Jun 21st, 2011, 10:13 AM
Hi All,

I know it's still sandboxed, but is there at least some simple example of spring-integration-amqp that I can play around with?

I installed org.springframework.integration:spring-integration-amqp:2.0.4.BUILD-SNAPSHOT and tried to use the context configuration from http://git.springsource.org/spring-integration/sandbox/blobs/master/spring-integration-amqp/src/test/java/org/springframework/integration/amqp/config/EchoSample-context.xml but to no avail.

with that exact configuration I just get

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'rabbit:connection-factory'.

Dave Syer
Jun 24th, 2011, 03:09 AM
Is that at runtime? If it is then you probably just have the wrong (old) version of spring-rabbit.jar.

mike711
Aug 31st, 2011, 10:38 AM
I received the same problem. The issue is that the location for the spring-rabbit.xsd doesn't exist (or at least it doesn't anymore).

I used the location https://raw.github.com/SpringSource/spring-amqp/master/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd which I found referenced elsewhere on the Internet and it seems to work.

kylesm
Oct 3rd, 2011, 10:05 AM
Make sure that your project has the Spring nature in STS/Eclipse. Once it has the Spring nature the IDE will know to pull the appropriate XSDs from the spring-rabbit JAR instead of trying to fetch it from the Web.

To add it: right-click on the project in STS and select Spring Tools -> Add Spring Project Nature.