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

Categories

0 votes
495 views
in Technique[技术] by (71.8m points)

spring jms - Overriding a method in DefaultMessageListenerContainer (JMS)

The method I want to override is refreshConnectionUntilSuccessful. This method handles shutting down the connection to the messaging queue after several failed attempts. I want to have a trigger when it gets into the block if(!applyBackOffTime(execution)){} so that I know when it stops attempting to reconnect. The only solution for this trigger I have found is to copy the parent method and add a trigger myself in a child class. Is there a way I can detect this happening without doing this?


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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...