the problem is that property substitutions are only valid in string
fields or CDATA fields. The schema validator is correctly more strict
for boolean attributes.

One option is to disable schema validation on your spring application
context if you have control over its instantiation.
The other is that we add a property editor to the boolean attributes
on BrokerService to have xbean produce a schema that requires a
string. This would require code change or course.

The  "activemq.xsd" schema that is resolved at runtime is contained in
the activemq-core jar,  and resolved via the embedded spring.schemas
indirection. As a workaround you could hack it to make that attribute
a string value.

2009/10/9 Dan Tran <dant...@gmail.com>:
>
>
> Hi I am using ActiveMQ with Spring, and I seem not able to make useJmx
> configurable
>
>  <!--  lets create an embedded ActiveMQ Broker -->
>  <amq:broker useJmx="${fdb.broker.useJmx}" persistent="false"
> advisorySupport="false" >
>
>
> I have other properties work fine except that line, any suggestion? must be
> the xbean's issue?
>
> here is error message:
>
> SEVERE: Exception sending context initialized event to listener instance of
> class org.springframework.web.context.ContextLoaderListener
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 11 in XML document from class path resource
> [com/fortinet/fortidb/applicationContext-activemq.xml] is invalid; nested
> exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
> '${fdb.broker.useJmx}' is not a valid value for 'boolean'.
>        at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
>        at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>        at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>
>
> Thanks
>
> -D
> --
> View this message in context: 
> http://www.nabble.com/make-useJmx%27s-value-configurable--tp25816067p25816067.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Reply via email to