Hi Dain

The current jboss-service.xml contains the current way to specify the
Scheduler but
also the docu (from CVS) is correct but I updated it to the latest changes.

Service.xml should look like:
<mbean code="org.jboss.util.Scheduler" name="jboss:service=Scheduler">
<attribute name="StartAtStartup">true</attribute>
<attribute
name="SchedulableClass">org.jboss.util.Scheduler$SchedulableExample</attribu
te>
<attribute name="SchedulableArguments">Schedulabe Test,12345</attribute>
<attribute name="SchedulableArgumentTypes">java.lang.String,int</attribute>
<attribute name="InitialStartDate">0</attribute>
<attribute name="SchedulePeriod">10000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
</mbean>

Have fun - Andy


----- Original Message -----
From: "Dain Sundstrom" <[EMAIL PROTECTED]>
To: "'Andreas Schaefer'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 2:58 PM
Subject: RE: [JBoss-dev] Scheduler Updates


> So what does the correct -service.xml mbean entry look like?  I started
> using this last night and found the documentation way off but the
> jboss-service.xml had the correct xml to get the stuff started (it had a
> constructor tag under the main mbean tab).
>
> Thanks
>
> dain
>
> > -----Original Message-----
> > From: Andreas Schaefer [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 17, 2002 4:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-dev] Scheduler Updates
> >
> >
> > Hi Geeks
> >
> > For the current CVS head (JBoss 3.0) I made some
> > changes to the Scheduler:
> >
> > 1) When you set an "Initial Start Date" in the past the
> >     Scheduler will check if now can be reached by
> >     the period and repetition. If it can then the Scheduler
> >     will start there and reduce the repetition appropriate.
> >     If not then it will not start. If it is an endless loop then
> >     the Scheduler will always be restarted.
> > 2) The initial start date can now be set either
> >     - milliseconds since 1/1/1970
> >     - NOW meaning now
> >     - Date string which can be parsed by SimpleDateFormat
> >       which depends on your environment
> > 3) Adjusted the "jboss.jcml" to set the values of the Scheduler
> >      by attributes and not by constructor arguments.
> > 4) The remaning repetitions in the Schedulable.perform() was
> >     one call to high. Now it is the correct remaining repetitions.
> >
> > Have fun
> >
> > xxxxxxxxxxxxxxxxx
> > Andreas Schaefer
> > Senior Consultant
> > JBoss Group, LLC
> > xxxxxxxxxxxxxxxxx
> >
> >
> >
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-development
> >
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to