activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MassDosage <massdos...@gmail.com>
Subject Re: Using embedded broker with spring in activemq 4.0.1
Date Wed, 05 Jul 2006 09:41:20 GMT

I am trying to use an embedded broker with Active MQ 4.0.1, Spring 2.0RC1 and
XBean 2.4 and I get this error:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from class path resource [activemq.xml];
nested exception is java.lang.IllegalArgumentException: Unable to locate
NamespaceHandler for namespace URI [http://activemq.org/config/1.0]
Caused by: 
java.lang.IllegalArgumentException: Unable to locate NamespaceHandler for
namespace URI [http://activemq.org/config/1.0]
	at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:141)
	at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerResolver.resolve(XBeanNamespaceHandlerResolver.java:30)

The activmq.xml config file that I use looks like so:

<beans>
  
  <bean id="activeMQConfigurer"
class="net.thinktext.util.activemq.ActiveMQConfigurer"
factory-method="getInstance"/>

  <bean id="activeMQConfigurer.dataSource"
class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
  
  	<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location" value="classpath:thinktext.properties"/>
	</bean>
  
  <broker useJmx="false" xmlns="http://activemq.org/config/1.0">

	<persistenceAdapter>
      <journaledJDBC journalLogFiles="5"
dataDirectory="${activemq.data.dir}"
dataSource="#activeMQConfigurer.dataSource"/>
    </persistenceAdapter>
  
    <transportConnectors>
       <transportConnector
uri="tcp://${activemq.broker.host}:${activemq.broker.port}" />
    </transportConnectors>
    
    <networkConnectors>
      <networkConnector
uri="static://(tcp://${activemq.broker.host}:${activemq.broker.port})" />
    </networkConnectors>
    
  </broker>
  
</beans>

Does anyone have any idea what's going wrong with the namespace?
-- 
View this message in context: http://www.nabble.com/Using-embedded-broker-with-spring-in-activemq-4.0.1-tf1836224.html#a5178641
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message