Thursday, July 23, 2009

Software Development

Scheduling in Web Beans and JSR-299 Apps
Introducing WebBeans Scheduling . It's a way (the best way) to run scheduled events in WebBeans (and eventually, any JSR-299 implementation). It makes use of CDI's typesafe event model for tying business logic to schedules. That is, you define your schedules using the provided binding types, which you apply to observer methods containing the business logic that you wish to be run at those times. In other words: public void onSchedule(@Observes @Scheduled( %26ldquo; 20 */2 * ? * * %26ldquo; ) Event