[jboss-cvs] JBossAS SVN: r59790 - trunk/varia/src/etc.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 18 12:30:55 EST 2007
Author: dimitris at jboss.org
Date: 2007-01-18 12:30:55 -0500 (Thu, 18 Jan 2007)
New Revision: 59790
Modified:
trunk/varia/src/etc/schedule-manager-service.xml
trunk/varia/src/etc/scheduler-service.xml
Log:
JBAS-3870, provide instructions if user wants to switch to org.jboss.mx.timer.JBossTimer
Modified: trunk/varia/src/etc/schedule-manager-service.xml
===================================================================
--- trunk/varia/src/etc/schedule-manager-service.xml 2007-01-18 17:30:15 UTC (rev 59789)
+++ trunk/varia/src/etc/schedule-manager-service.xml 2007-01-18 17:30:55 UTC (rev 59790)
@@ -8,6 +8,19 @@
<!-- ==================================================================== -->
<!--
+ | JDK5 javax.management.timer.Timer appears to be using a single
+ | threaded implementation for executing scheduled tasks.
+ | If you want to revert to the JBossMX timer implementation that
+ | uses a dynamically extensible thread pool to execute scheduled
+ | tasks, uncomment the JBossTimer service below. The Scheduler
+ | service will use this, instead of creating a new Timer.
+ - ->
+ <mbean code="org.jboss.mx.timer.JBossTimer"
+ name="jboss:service=Timer">
+ </mbean>
+ <!- - -->
+
+ <!--
| This MBean is an example of a Schedule Target
- ->
<mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
Modified: trunk/varia/src/etc/scheduler-service.xml
===================================================================
--- trunk/varia/src/etc/scheduler-service.xml 2007-01-18 17:30:15 UTC (rev 59789)
+++ trunk/varia/src/etc/scheduler-service.xml 2007-01-18 17:30:55 UTC (rev 59790)
@@ -3,51 +3,63 @@
<server>
- <!-- ==================================================================== -->
- <!-- Scheduler Service -->
- <!-- ==================================================================== -->
+ <!-- ==================================================================== -->
+ <!-- Scheduler Service -->
+ <!-- ==================================================================== -->
- <!--
- | This example shows how to use a pluggable Schedulable impl
+ <!--
+ | JDK5 javax.management.timer.Timer appears to be using a single
+ | threaded implementation for executing scheduled tasks.
+ | If you want to revert to the JBossMX timer implementation that
+ | uses a dynamically extensible thread pool to execute scheduled
+ | tasks, uncomment the JBossTimer service below. The Scheduler
+ | service will use this, instead of creating a new Timer.
+
+ <mbean code="org.jboss.mx.timer.JBossTimer"
+ name="jboss:service=Timer">
+ </mbean>
+ -->
+
+ <!--
+ | 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>
- <attribute name="FixedRate">true</attribute>
- </mbean>
+ <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>
+ <attribute name="FixedRate">true</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.
+ <!--
+ | 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
+ <!--
+ | 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>
- <attribute name="FixedRate">true</attribute>
- </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>
+ <attribute name="FixedRate">true</attribute>
+ </mbean>
+ -->
- -->
-
</server>
More information about the jboss-cvs-commits
mailing list