Alan's Blog

导航

2012年1月21日 #

定时服务(Timer Service)

摘要: EJB3.0的定时服务开发过程:关键点:首先需要使用容器对象SessionContext创建定时器,然后使用@Timerout声明定时器方法声明:@Resource SessionContext ctxContext调用:ctxContext.getTimerService().createTimer(X,X...)方法规范:在方法上面加上@Timerout要遵循这样的规范:void XXX(Timer timer),在定时器发生时,改方法将被执行相关代码: 阅读全文

posted @ 2012-01-21 10:12 Alan's Blog 阅读(1379) 评论(0) 推荐(0) 编辑