activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BlueFox <>
Subject Spring configuration problem (without XBean)
Date Thu, 31 Jul 2008 15:07:02 GMT

I'm trying to configure my activemq embedded broker without spring but I
can't seem to get it to work, can someone tell me what I did wrong in the

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
		<property name="locations"
			value="" />
		<!-- !!!Note: Any System properties set will be used instead of the value
set in the properties file -->
		<property name="systemPropertiesMode" value="2" />
		<property name="ignoreUnresolvablePlaceholders" value="true" />

	<!-- Embedded ActiveMQ Broker -->
	<amq:broker brokerName="localhost" useJmx="${activemq.useJmx}"
			<amq:transportConnector uri="${}" />
			<amq:amqPersistenceAdapter directory="${}"/>

	<!-- ActiveMQ destinations to use for Upstream -->
	<amq:queue id="test"  physicalName="test.queue"/>
	<!-- JMS ConnectionFactory to use, configuring the embedded broker using
XML -->
	<amq:connectionFactory id="amqConnectionFactory"
	<!-- Pooled connection factory -->
	<bean id="jmsFactory"
		init-method="start" destroy-method="stop">
		<property name="connectionFactory" ref="amqConnectionFactory" />

When I start my program, I get this error:
Line 20 in XML document from class path resource [activemq.config.xml] is
invalid; nested exception is org.xml.sax.SAXParseException:
cvc-datatype-valid.1.2.1: '${activemq.useJmx}' is not a valid value for

The program works if I replace all the ${variable} with the actual value,
but I'm not sure why this does not work as intended, can anyone enlighten me
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message