Announcement Announcement Module
Collapse
No announcement yet.
Simple working example of spring-integration-amqp Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple working example of spring-integration-amqp

    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-i...le-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'.

  • #2
    Is that at runtime? If it is then you probably just have the wrong (old) version of spring-rabbit.jar.

    Comment


    • #3
      RE: Simple working example of spring-integration-amqp

      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.

      Comment


      • #4
        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.

        Comment

        Working...
        X