ICEfaces
  1. ICEfaces
  2. ICE-5273

The application-scoped ClockBean of Auction sample is not getting cleaned up on redeploy

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha1
    • Fix Version/s: 2.0-Alpha2, 2.0.0
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces 2.0
    • Affects:
      Sample App./Tutorial

      Description

      The application-scoped ClockBean creates a Timer for running TimerTasks for each new session. Even though the constructor is specifying that the underlying thread is a daemon thread, it appears that it doesn't apply unless the whole JVM is shutting down (not just the re-deployed app).

        Activity

        Hide
        Deryk Sinotte added a comment -

        Add @PreDestroy cleanup() method to cancel the Timer so that it no longer lasts between deployments.

        Show
        Deryk Sinotte added a comment - Add @PreDestroy cleanup() method to cancel the Timer so that it no longer lasts between deployments.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: