Hi Andy,
mad sunday-working peope!
I found your mail this morning in my folder and wonder how things grow
in parallel. In the last days, I developed a similar solution because
we need to schedule some processes in our project and I wants to
publish and contrib our solution to the jboss project - but now you are
faster.
Nevertheless, I'll descripe our solution sinci it is a little bit
different in doing the scheduling. I.e. I designed a more general
scheduler MBean to manage many scheduled process which can be
configured in a seperate scheduler.jobs file. There you can set the
initial startpoint, repetition period (optional) and repetition
counter(optional). Since we use topics to communicate between the
scheduler and the scheduled process, there is no need to include any
classes of the scheduled process in the classpath of the MBeans.
This seems me to be a more flexible solution.
A (optional) message, which can be configured within your defined jobs
makes it possible to start the same job with different parameters in
different timings.
Interested ??
If yes, how can I submit the code and description ?? (This would be my
first contribution to jBoss).
best regards
tom
PS: please reply also to [EMAIL PROTECTED], I'm here in a
project and not subscribed to the JBoss-dev list
--
THETA - Consulting
Kommuniktionsanalyse - Anwendungsentwicklung - LINUX-Systeme
Thomas Hagedorn Tel. 07231-472108
Rainstr. 12 Tel. 0172-7642398
75217 Birkenfeld [EMAIL PROTECTED]
Jesus inside - where do you want to go forever ?
On Mon, 11 Jun 2001, you wrote:
> Hi Geeks
>
> After some requests for a JMX Timer example and using BEA Weblogic's
> Scheduler (@ work, of course) I came up with the idea of having a similar
> Scheduling Service but better because we do it right, right ?
>
> In jboss.jcml (default) is an example MBean definition. To use it on your
> own just do:
> - uncomment the example in jboss.jcml
> - create your own instance of a Schedulable taks by implementing the
> Schedulable interface
> - Replace the fully qualified class name with the
> Scheduler$SchedulableExample - Adjust the constructor values:
> 1) Name of the MBean
> 2) Fully qualified class name of your Schedulable Task class
> 3) Comma separated list of Constructor Values (NOT SUPPORTED yet)
> 4) Comma separated list of Constructor Data Types (NOT SUPPORTED yet)
> 5) Date of the initial call in milliseconds (0 = now) (except 0 NOT
> SUPPORTED yet) 6) Period between two calls in milliseconds
> 7) Number of repetitions where -1 means forever
> - Make your Schedulable Task class available for the Scheduling MBean
> (classpath extension etc.)
>
> I think that's it. Have fun and tell me what you think.
>
> Please note that this is a alpa version and is not finished. Your comment
> will help to make it better.
>
> Mad Andy / Better Pizza
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development