53 lines
2.2 KiB
XML
53 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE server>
|
|
<!-- $Id: scheduler-service.xml,v 1.1 2006/04/21 17:58:45 jjanke Exp $ -->
|
|
|
|
<server>
|
|
|
|
<!-- ==================================================================== -->
|
|
<!-- Scheduler Service -->
|
|
<!-- ==================================================================== -->
|
|
|
|
<!--
|
|
| This example shows how to use a pluggable Schedulable impl
|
|
|
|
<mbean code="org.jboss.varia.scheduler.Scheduler"
|
|
name=":service=Scheduler">
|
|
<attribute name="StartAtStartup">true</attribute>
|
|
<attribute name="SchedulableClass">org.jboss.varia.scheduler.example.SchedulableExample</attribute>
|
|
<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>
|
|
|
|
-->
|
|
|
|
<!-- NOTE: If a Timer service is not already running, the scheduler will create
|
|
one with a default object name of jboss:service=Timer. This will not be
|
|
redeployed upon redeploying your scheduler. To change the object name
|
|
for the Timer service to be created, declare an attribute named TimerName.
|
|
For more info on scheduler, see http://www.jboss.org/wiki/Wiki.jsp?page=Scheduler.
|
|
-->
|
|
|
|
<!--
|
|
| This example shows how to use a target MBean
|
|
|
|
<mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
|
|
name=":name=SchedulableMBeanExample">
|
|
</mbean>
|
|
<mbean code="org.jboss.varia.scheduler.Scheduler"
|
|
name=":service=Scheduler,name=SchedulableMBeanExample">
|
|
<attribute name="StartAtStartup">true</attribute>
|
|
<attribute name="SchedulableMBean">:name=SchedulableMBeanExample</attribute>
|
|
<attribute name="SchedulableMBeanMethod">hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
|
|
<attribute name="InitialStartDate">NOW</attribute>
|
|
<attribute name="SchedulePeriod">10000</attribute>
|
|
<attribute name="InitialRepetitions">10</attribute>
|
|
</mbean>
|
|
|
|
-->
|
|
|
|
</server>
|