Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the spring rabbit XSD (schema location for the rabbit: namespace)

http://static.springsource.org/spring-amqp/docs/1.0.x/reference/html/ mentions the rabbit: namespace, but never mentions what is the schema location. Googling (and naming conventions) ended up with:

http://www.springframework.org/schema/rabbit/spring-rabbit.xsd

but this files does not exist. So where is the xsd?

like image 926
Bozho Avatar asked Jul 19 '11 10:07

Bozho


2 Answers

Today XML schema located at:

http://www.springframework.org/schema/rabbit/spring-rabbit-1.3.xsd
http://www.springframework.org/schema/rabbit/spring-rabbit-1.4.xsd
http://www.springframework.org/schema/rabbit/spring-rabbit-1.5.xsd

Pick any you need!

like image 156
gavenkoa Avatar answered Mar 16 '23 21:03

gavenkoa


As a temporary solution, I'm using this schema location to enable autocomplete. Otherwise it is located in the spring-rabbit jar (but the IDE does not detect it):

That is (from a comment from stacker):

I have the following at the top of my schema declaration:

<?xml version="1.0" encoding="UTF-8"?>
<beans  xmlns="http://www.springframework.org/schema/beans" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:p="http://www.springframework.org/schema/p" 
        xmlns:context="http://www.springframework.org/schema/context"
        xmlns:rabbit="http://www.springframework.org/schema/rabbit"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans 
            http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
            http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context-3.1.xsd
            http://www.springframework.org/schema/rabbit
            https://raw.github.com/SpringSource/spring-amqp/master/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd">
like image 22
Bozho Avatar answered Mar 16 '23 20:03

Bozho