首页 | 本学科首页   官方微博 | 高级检索  
     

Java定时任务及其在工作流系统中的应用
引用本文:杨秀萍. Java定时任务及其在工作流系统中的应用[J]. 现代电子技术, 2011, 34(8): 87-90
作者姓名:杨秀萍
作者单位:广东农工商职业技术学院,广东,广州,510507
摘    要:以基于J2EE平台的工作流软件系统为背景,以在系统中自动定时的通过查询数据库来发送工作到期提醒邮件为目的,在Java的定时器类和监听器类基础上,创新性的采用将两者相结合的方法,实现了能够定时执行任务的监听类,并将此类放入工程的配置文件中,当Web容器启动时自动加载来运行指定的任务。从系统应用的实际效果来看,能将所有提醒邮件按时准确的发送到每一个工作流的参与者手中,所以此方案能够方便有效的解决该类需求,同时对于基于J2EE的其他类型软件系统也有很好的参考价值。

关 键 词:定时任务  工作流系统  J2EE  timer  listener

Timed Task of Java and Its Application in Workflow System
YANG Xiu-ping. Timed Task of Java and Its Application in Workflow System[J]. Modern Electronic Technique, 2011, 34(8): 87-90
Authors:YANG Xiu-ping
Affiliation:YANG Xiu-ping(Guangdong AIB Polytechnic College,Guangzhou 510507,China)
Abstract:Under the background of J2EE platform-based workflow system,for the purpose of sending email for reminding the person that jobs will be due by inquiring database automatically and regularly in the system,using the timer and listener class of java to to extend a new listener class which can work periodically,and putting it into the configuration file of the project which can be triggered as soon as the container starts,the tasks can be scheduled and executed as appointed.The result of application shows that ...
Keywords:J2EE  timer  listener
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号