Reputation: 617
Most of cases, views(JSP) use RESTful server to extract desired data.
In my case, a wep application server itself needs to extract data from other web server which provides RESTful. And it needs to periodcally update data into database without users request.
As far as I know, Web Application Server is in operation when there is a requst by a user. If it is difficult in implementing through scheduling, would you recommand to use the following method?
System / Framework dependency : JSP, Spring-MVC, Tomcat
Thank you in advance, any advice will be very helpful
Upvotes: 0
Views: 151
Reputation: 26
There are certain number of ways which can fit into this scenario as a solution :
Ticketing - Depending upon the usecase we can integrate a ticketing system like serviceNow, Remedy and ITSM into the application and schedule the operation. Involves concept like Polling.
Using @Scheduled annotation to schedule the tasks which are to be implemented "schedule-tasks-ref"
Please feel free to ask if you want any clarification on this or else you have usecases that are not met by these solutions offered.
Upvotes: 0
Reputation: 8838
Quartz Scheduler (http://www.quartz-scheduler.org/):
Quartz is a richly featured, open source job scheduling library that can be integrated within virtually any Java application
Some examples at Quartz Scheduler Tutorial
Upvotes: 0
Reputation: 2947
Spring has a whole Task Execution chapter on handling this use case by creating @Scheduled
tasks.
Upvotes: 2