I am using Spring(boot) on my project and I access a JMS Queue (ActiveMQ) using :
@JmsListener(destination = "mydestinationQueue")
public void processMessage(String content) {
//do something
}
And it works perfectly but I need to be able to stop/pause/start this bean programatically (a REST call or something like that)
When I stop or pause this bean I want to be sure to have fully processed the current message.
any idea about that ?
thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…