需要有关Spring JMS Active MQ简介的指导

时间:2015-10-11 16:52:56

标签: spring jms activemq

我关注"I coding blog"这对于像我这样想要进入Spring,JMS和ActiveMQ的人来说非常好。

当我将TestJMSListener作为java应用程序运行时,我收到以下错误:

Exception in thread "main"    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [com/jms/helloworld/config/JMSConfig.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException: 
Invalid property 'brokerurl' of bean class [org.apache.activemq.ActiveMQConnectionFactory]: 
Bean property 'brokerurl' is not writable or has an invalid setter method. 
Does the parameter type of the setter match the return type of the getter?

我不知道如何修复它,下面是我的JMSConfig.xml文件:

your xml file here. 

1 个答案:

答案 0 :(得分:0)

根据the documentation,该属性称为brokerURL,而不是brokerurl。 Spring在异常消息中有用地报告了问题的原因。