简体   繁体   中英

How can i schedule automatically print jobs?

at present for every 15 min , manually i am entering 'one code' in text box(eg: trip code(travel domain project)) which is already exist in database, if it is valid code then showing report in HTML format then taking print out. Now my requirement like this after every 15 min , i have schedule print job automatically , with out entering trip code. ( trip code examples are : 0015 , 0030, 0045.0200..............these are 00:15 am hrs, 00:30hrs, 2 hrs Am timings..) platform : java, struts, jsp

You need some type of Scheduling recurring tasks one API which came in my mind is

java.util.Timer and java.util.TimerTask

and if you want something more powerful and more configurable you can always reply upon Quartz Scheduler

quartz-scheduler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM