I am facing an issue when working for a project. the situation is like this.
1. Our application which is build using spring access many other applications.
2. When we access the other application and if not able to connect to it for some reason like the other appication is down, we will send an email to
notify them. But what is happening is our application sends email continously until the application is up and spaming the inbox.
3. Now we need to avoid sending mail if already a mail is sent for the same reason and if the issue is not fixed, every 2hour we need to send another mail.
Can you please help me how to acheive this, is there any template or any support readily available in spring.
thanks in advance
Re: spring mail
Looks like you need some kind of scheduler in Spring? Try to check Spring AMQP.