Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-161

allow session toolbox serialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 3.0
    • None
    • None
    • all

    Description

      Some session standard tools keep a reference on the Velocity Log, which is not serializable.

      Some work is needed to allow session serialization:

      • a short fix is to have those tools keep a transcient reference on the Log (and have them check it before each use). Easy to implement, but deserialized sessions won't be able to use the logger, unless there is some kind of reinitialization mechanism.
      • a proper way to handle this would be to have standard session tools stored as transcient objects - the lazy tools initializer will re-create them on demand.
      • or maybe the session toolbox itself should be made transcient in the J2EE session by means of a little wrapper ; easy to do, but the user may want to serialize its own objects.

      I guess the second solution is the more appropriate. Any thought?

      Attachments

        Activity

          People

            Unassigned Unassigned
            cbrisson Claude Brisson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: