Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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.

Thanks Jay

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
131 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...