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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #20238 Thu Jan 14 17:22:37 MST 2010 deryk.sinotte ICE-5273: cleanup Timer when application-scoped ClockBean is destroyed
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/auction/src/main/java/org/icefaces/demo/auction/beans/ClockBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #20239 Thu Jan 14 17:24:29 MST 2010 deryk.sinotte ICE-5273: remove System.out
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/auction/src/main/java/org/icefaces/demo/auction/beans/ClockBean.java
        Deryk Sinotte created issue -
        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.
        Deryk Sinotte made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0-Alpha2 [ 10214 ]
        Affects [Sample App./Tutorial]
        Assignee Priority P1
        Resolution Fixed [ 1 ]
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Ken Fyten made changes -
        Fix Version/s 2.0.0 [ 10230 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1

          People

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

            Dates

            • Created:
              Updated:
              Resolved: