[jboss-jira] [JBoss JIRA] Closed: (JBAS-3870) Clone the JBossMX javax.management.timer.Timer implementation, to a jboss package
Dimitris Andreadis (JIRA)
jira-events at jboss.com
Thu Jan 18 08:45:52 EST 2007
[ http://jira.jboss.com/jira/browse/JBAS-3870?page=all ]
Dimitris Andreadis closed JBAS-3870.
------------------------------------
Resolution: Done
The jbossmx javax.management.timer.Timer has been cloned into:
org.jboss.mx.timer.JBossTimer
The 2 JMX based schedulers:
org.jboss.varia.scheduler.ScheduleManager &
org.jboss.varia.scheduler.Scheduler
can utilitize the jboss timer (instead of the jdk5 javax.management.timer.Timer) if you just instantiate it seperately:
<mbean code="org.jboss.mx.timer.JBossTimer" name="jboss:service=Timer"/>
This is the default name there are looking for so they will use it automatically. You could choose a different name, then configure the TimerName attribute on both schedulers.
> Clone the JBossMX javax.management.timer.Timer implementation, to a jboss package
> ---------------------------------------------------------------------------------
>
> Key: JBAS-3870
> URL: http://jira.jboss.com/jira/browse/JBAS-3870
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: JMX
> Reporter: Dimitris Andreadis
> Assigned To: Dimitris Andreadis
> Fix For: JBossAS-5.0.0.CR1, JBossAS-4.2.0.CR1
>
>
> There are indications that the jdk5 implementation of javax.management.timer.Timer uses internally a single-threaded implementation for executing scheduled tasks, so scheduling of multiple tasks is affected when moving from jdk1.4 and the jboss implementation of Timer, to a jdk5 runtime.
> The JBossMX Timer implementation in contrast uses a dynamically extensible thread pool to execute scheduled tasks. Since we don't control the jdk5 implementation, a simple solution is to clone the jboss timer into a new package, e.g. org.jboss.javax.management.timer.Timer, for those that want to stick with the jboss implementation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list