【发布时间】: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 文件