Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2773

LRUEnterpriseContextCachePolicy should be updated to use org.jboss.util.TimerQueue instead of java.util.Timer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • JBossAS-4.0.3 SP1
    • EJB2
    • None

    Description

      LRUEnterpriseContextCachePolicy should be updated to use org.jboss.util.TimerQueue instead of java.util.Timer.

      The java.util.Timer implementation does not handle runtime exceptions thrown from the tasks, if any task throws a runtime exception when it executes the timer thread is killed and no further timers will fire.

      The classes EntitySynchronizationInterceptor, LRUEnterpriseContextCachePolicy and LRUStatefulContextCachePolicy all set tasks on the static timer referenced from LRUEnterpriseContextCachePolicy, if any one of these tasks fail all of the timers are affected.

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: