asynchbeans WorkManager & CommonJ Scheduling integration

569 views Asked by At

I need to develop a scheduler which will run a task once a day, and will run in Websphere. i have been looking at the WorkManager API and I can't find anything regarding how the work can be scheduled. However, after doing some other search I have found that commonj can be used with the WorkManager - however I cant find any good example on how this can be done.

Any pointers on this please ?

1

There are 1 answers

0
Aviram Segal On BEST ANSWER

I would use EJB 3 TimerService for this purpose.

The problem with asyncbeans is that they are not persistent.

EJB3 Timers are persistent (file store by default) and can be configured to use a custom WebSphere scheduler if you need something special.

Usually the defaults are enough.

Check this tutorial: Using the Timer Service