天子剑毅 2014-02-08 08:22 采纳率: 0%
浏览 8862

Spring JMS监听器问题

<!-- 消息监听容器 -->  
<bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">  
    <property name="concurrentConsumers" value="2" />  
    <property name="connectionFactory" ref="connectionFactory" />    
    <property name="destination" ref="destination" />
    <property name="messageListener" ref="messageReceiver" />
    <property name="pubSubNoLocal" value="false"></property>
</bean>  

如果我的activeMQ没有打开,就一直报这样的错:

    警告: Setup of JMS message listener invoker failed for destination 'queue://emailQueue' - trying to recover. Cause: Connection reset
2014-2-8 16:20:49 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful
严重: Could not refresh JMS Connection for destination 'queue://emailQueue' - retrying in 5000 ms. Cause: Error while attempting to retrieve a connection from the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect

怎么不让它报这个错啊?每次开发都把MQ打开,比较麻烦

  • 写回答

1条回答

  • CSDN-Ada助手 CSDN-AI 官方账号 2022-09-21 01:51
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作