Calling self's API on application Restart(Grails 3.3.9) (Tomcat Restart)

121 views Asked by At

While building a grails 3.3.9 application, I've encountered a scenario where I need to call its own API on application restart (for a specific purpose). I long as I know we can't make an API calls via boostrap.groovy, So an alternate option I found the Application.main method from where I can make own API calls. But this is only working on Grails - run mode. I need to make this working on Grails - war mode-as I have to deploy the war in the production environment once it verified in QC.

I can have the cron setup to do this but I am looking for the grails inbuilt function.

Others information: Grails:3.3.9 Gradle:4.10.3 Tomcat 8.5.50

0

There are 0 answers