ICEfaces
  1. ICEfaces
  2. ICE-7558

Add API to proactively clean up files generated by outputResource

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03, 3.0.RC1
    • Fix Version/s: EE-1.8.2.GA_P04
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      -
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      The exported files are not removed from memory when they are no longer needed (e.g. navigation) or the user's session is no longer valid. The deleteOnExit flag value appears to be true but the files are not deleted until the JVM terminates, which may not happen for months or years in a production environment. We should add an API that will allow developer's to forcefully delete these files within the application.

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000JLSR4]
        Ken Fyten made changes -
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Assignee Priority P1
        Assignee Adnan Durrani [ adnan.durrani ]
        Adnan Durrani made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Tyler Johnson [ tyler.johnson ]
        Ken Fyten made changes -
        Assignee Priority P1 P2
        Assignee Tyler Johnson [ tyler.johnson ] Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Assignee Priority P2 P1
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #27126 Tue Jan 10 08:48:45 MST 2012 mircea.toma ICE-7558 Introduced FileResource callback registration method to notify the finishing of resource serving to interested parties. Register callback with FileResource in DataExporter to deregister resource and remove file from the file system.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/FileResource.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/dataexporter/DataExporter.java
        Hide
        Mircea Toma added a comment -

        The ResourceRegistry API already has a method defined for removing resources. The remaining work would be to modify the component so that is removes the resources it registers.

        Show
        Mircea Toma added a comment - The ResourceRegistry API already has a method defined for removing resources. The remaining work would be to modify the component so that is removes the resources it registers.
        Hide
        Mircea Toma added a comment -

        Introduced FileResource callback registration method to notify the finishing of resource serving to interested parties. Registered callback with FileResource in DataExporter to deregister resource and remove file from the file system.
        Removing the exported file after each serving it is fine in this case since the component creates the file every time is requested (to make sure its content always reflects the data table state).

        Show
        Mircea Toma added a comment - Introduced FileResource callback registration method to notify the finishing of resource serving to interested parties. Registered callback with FileResource in DataExporter to deregister resource and remove file from the file system. Removing the exported file after each serving it is fine in this case since the component creates the file every time is requested (to make sure its content always reflects the data table state).
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Issue Type New Feature [ 2 ] Improvement [ 4 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Tyler Johnson
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: