activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Cons <>
Subject Apollo & Plugins & Configuration
Date Fri, 20 Apr 2012 07:38:32 GMT
Apollo can validate its XML configuration using XSD [1]. This is very
good and allows for instance the detection of typos in the file before
the broker even starts.

Apollo supports plugins [2] that may need to be configured. AFAIK,
configuration bits can appear in many places and apollo.xsd will
somehow ignore them thanks to lines like:

  <xs:any processContents="lax" namespace="##other" minOccurs="0" maxOccurs="unbounded"/>

It is however not clear to me how the two work together. Imagine that
I have a plugin that needs some XML configuration, how can I plug its
own XSD so that Apollo will be happy with it?

FWIW, in ActiveMQ, we use namespaces for this. We add our namespace
with its schema in <beans xsi:schemaLocation> and we can further down
configure our plugin with:

    <ourPlugin xmlns="ourNameSpace" ourOption="whatever">


Lionel Cons


View raw message