Hi!

Darius Davidavicius wrote:
> Feature:   User defined servises
> Purpose:  User defines functions of Stateless Session bean and defines timing (in 
>seconds). Every time timer expires function is called.
> Usage:  Data base purger, Email fetcher, Email sender, etc...
> Implemntation: Somethink like AutoDeploy bean; reads configuration file, puts all 
>servises into list ans starts thread. List is sorter by timer and wakeups when it is
> needed, calls needed session bean function and sleeps till next wakeup.
> 
> What do u think?

This is already possible. :-) There is a Timer service in JMX. So,
implement an MBean which uses the timer, and when the timer expires your
MBean can call your beans to perform the work.

regards,
  Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

Reply via email to