ActiveMQ:如何为ActiveMQ.Advisory.Connection主题创建订阅服务器 [英] ActiveMQ: How to create subscriber for ActiveMQ.Advisory.Connection topic

查看:676
本文介绍了ActiveMQ:如何为ActiveMQ.Advisory.Connection主题创建订阅服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 ActiveMQ版本5.4.3 编写警报,以提醒客户端连接或断开连接等不同事件.但是我无法继续进行操作,也无法为ActiveMQ.Advisory.Connection主题创建订户,它会引发异常:

I am writing the alerts for ActiveMQ version 5.4.3 for different event like client connected or disconnected. But I am not able to proceed and not able to create the subscriber for ActiveMQ.Advisory.Connection topic it is throwing exception:

Exception in thread "main" javax.jms.JMSException: Cannot create a durable subscription for an advisory Topic 

在此方面的任何帮助将不胜感激.

Any help in this would be appreciated.

谢谢 杰伊

推荐答案

不允许您为咨询"主题创建持久订阅,这恰恰是异常告诉您的.只需创建普通订阅,您就不会收到错误消息.

You aren't allowed to create durable subscriptions for Advisory topics, exactly what the exception is telling you. Just create a normal subscription and you won't get the error.

这篇关于ActiveMQ:如何为ActiveMQ.Advisory.Connection主题创建订阅服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆