activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jones, Melvin [GBSUS Non-J&J]" <MJone...@CNTUS.JNJ.COM>
Subject Spring 2.0.1 + ActiveMQ 4.1.0: Did activemq-core-4.1-incubator-S NAPSHOT.xsd change?
Date Mon, 08 Jan 2007 17:11:26 GMT

Forgive me for asking if I'm missing something obvious, but did the XML
schema definition for the 4.1.0 release change underneath me?  

I'm using Spring 2.0.1 and xbean-spring-v2c-2.7 and this configuration file
was working fine 2 weeks ago, but suddenly I'm getting and error:

Line 10 in XML document from URL
text.xml] is invalid; nested exception is org.xml.sax.SAXParseException:
cvc-complex-type.2.4.b: The content of element 'amq:queue' is not complete.
One of '{"":compositeDestinations,
WC[##other:""]}' is expected. 

Here's the block of code that the parser is complaining about:

			<amq:queue name="jobqueue"
physicalName="" />

So it looks like element <amq:queue> isn't complete.  I get it.  

It's not very clear to me exactly what properties I need to fill in and what
their values should be. 

Is there any updated documentation that I missed somewhere?   

I've been struggling with this for days, any help would be greatly

My entire config is below.

-------------------begin entire xml config----------------------------

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

	<!--  lets create an embedded ActiveMQ Broker -->
	<amq:broker useJmx="false" persistent="true" start="true">
			<amq:queue name="jobqueue"
physicalName="" />

					<ref bean="dataSource" />

			<amq:transportConnector uri="tcp://localhost:0" />

	<!--  ActiveMQ destinations to use  -->
	  <amq:queue name="cwjobqueue" 
		physicalName="" /> 
	<!-- JMS ConnectionFactory to use, configuring the embedded broker
using XML -->
	<amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost" />

	<!-- Spring JMS Template -->
	<bean id="cwJmsTemplate"
		<property name="connectionFactory">
			<!-- lets wrap in a pool to avoid creating a
connection per send -->
				<property name="targetConnectionFactory">
					<ref local="jmsFactory" />

	<bean id="consumerJmsTemplate"
		<property name="connectionFactory" ref="jmsFactory" />

	<!-- a sample POJO which uses a Spring JmsTemplate -->
	<bean id="producer"
		<property name="template">
			<ref bean="cwJmsTemplate" />

		<property name="destination">
			<ref bean="cwjobqueue" />

		<property name="messageCount">

	<!-- a sample POJO consumer -->
	<bean id="consumer"
		<property name="template" ref="consumerJmsTemplate" />
		<property name="destination" ref="cwjobqueue" />

-------------------end xml config----------------------------

Melvin Jones

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message