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

Hi I've a client application which publishes the message to MQ, I'm using jmsTemplate's convertAndSend(message) method for it.

Everything is working fine, I just need one help to implement some re-delivery mechanism. What if the queue manager is down and throws a runTimeException, in this case how can I re-send the unpublished message to queue.

Could anyone suggest any simple idea on this?

One thing which I can perform to call converAndSend method in loop for 5 times in catchBlock in case of queue unavailability, but I dont want to use this.

Any mechanism provided by JMSTemplate??

Thanks in advance.


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

1 Answer

等待大神答复

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