【问题标题】:Need guidance on Introduction to Spring JMS Active MQ需要 Spring JMS Activemq 简介的指导
【发布时间】:2016-01-09 03:12:27
【问题描述】:

我正在关注"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. 

【问题讨论】:

  • 在您的问题中复制并粘贴 JMSConfig.xml 文件

标签: spring jms activemq


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-12-24
    • 2014-08-23
    • 2019-05-10
    • 2015-11-19
    • 2021-10-18
    • 2020-12-03
    • 2015-01-22
    • 1970-01-01
    相关资源
    最近更新 更多