I am using J2EE with Jboss server. I am trying to finding a way to invoke sendEmail api in my code every month.
@GET
@Path("/sendEmail")
@Transactional
public String test(){
I want to invoke this test api which can be accessed using web-browser http://localhost:8181/api/calc/sendEmail
I found some ways to do this: https://cloud.google.com/appengine/docs/java/config/cron https://www.mkyong.com/java/how-to-run-a-task-periodically-in-java/
Using cron job looks intuitive way to do this but I find it difficult to search resources to find a way to schedule invoking of the APIs using it.
Please point me to some resources where I can find a way to do so by just adding single dependency for this purpose in pom.xml