Class WorkManagerThreadExecutor

  • All Implemented Interfaces:
    ThreadExecutor

    public class WorkManagerThreadExecutor
    extends java.lang.Object
    implements ThreadExecutor
    CommonJ WorkManager implementation of hacked Quartz ThreadExecutor class. This class schedules work on a WorkManager which is looked up in JNDI. The advantage is that all the work performed is done on a managed thread which is required by WebSphere, see QUARTZ-743 for details.
    Author:
    matt.accola
    • Constructor Detail

      • WorkManagerThreadExecutor

        public WorkManagerThreadExecutor()
    • Method Detail

      • execute

        public void execute​(java.lang.Thread thread)
        Description copied from interface: ThreadExecutor
        Submit a task for execution
        Specified by:
        execute in interface ThreadExecutor
        Parameters:
        thread - the thread to execute
      • setWorkManagerName

        public void setWorkManagerName​(java.lang.String workManagerName)
        Sets the JNDI name of the work manager to use.
        Parameters:
        workManagerName - the JNDI name to use to lookup the work manager