I have a webpage written with jsp and Java Servlets on a TomCat-Server.
I am very new to the whole JavaServlet thing. In the past I developed often in php. There it is very simple to create a Cronjob.
I just used CRONTAB and called a .php-file which did the job for me.
But how do I do this with JavaServlets? I read that some say the quartz-library would be good. But I didn't really get how to use this. I don't know where to start.
I know that this question isn't very detailed and I can't provide any code, because there is no. I just wonder if there is any possibility to just call a JavaServlet like I can in php with crontab.
My goal is to call a method every five minutes on my server. Most times this method will finish very quickly, but sometimes it will execute another .jar and last many minutes.
Any advice would be very helpful for me. Thanks!