ActiveMQ Xml Reference

This page contains a link to the XML reference guides and XML schema documents for Xml Configuration with ActiveMQ releases

Released Schemas

Reference Document Reference XML Schema
XBean XML Reference 4.1 Reference http://activemq.apache.org/schema/core/activemq-core-4.1.2.xsd
XBean XML Reference 5.0 Reference http://activemq.apache.org/schema/core/activemq-core-5.0.0.xsd
XBean XML Reference 5.1 Reference http://activemq.apache.org/schema/core/activemq-core-5.1.0.xsd

SNAPSHOT Schemas

References XSDDoc Schema
5.0 SNAPSHOT Reference XSDDoc http://activemq.apache.org/schema/core/activemq-core-5.0-SNAPSHOT.xsd
4.1 SNAPSHOT Reference   http://activemq.apache.org/schema/core/activemq-core-4.1-SNAPSHOT.xsd

Using the XSDs in configuration files

If you are using XBean to parse the XML configurations, the XML validation is optional so you do not need to specify the XML Schema Locations. However if you are using Spring's 2.0 XML handling to parse the XML then you need to refer to the XSD locations in your XML document.

You can refer to a specific version of the XSD in your XML as follows

<beans 
  xmlns="http://www.springframework.org/schema/beans" 
  xmlns:amq="http://activemq.org/config/1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.org/config/1.0 http://activemq.apache.org/schema/core/activemq-core-4.1.2.xsd">

or if you prefer you can use a generic XSD without the version number

<beans 
  xmlns="http://www.springframework.org/schema/beans" 
  xmlns:amq="http://activemq.org/config/1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.org/config/1.0 http://activemq.apache.org/schema/activemq-core.xsd">

Your IDE won't be able to fetch this XSD, you'll have to manually associate a specific release; however it does mean that you won't have to upgrade your XML config file with each ActiveMQ release; as it will resolve this XSD using the bundled XSD inside the activemq-core.jar.

Graphic Design By Hiram