You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <de...@velocity.apache.org> on 2018/06/24 01:46:00 UTC

[jira] [Comment Edited] (VELTOOLS-161) allow session toolbox serialization

    [ https://issues.apache.org/jira/browse/VELTOOLS-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521336#comment-16521336 ] 

Claude Brisson edited comment on VELTOOLS-161 at 6/24/18 1:45 AM:
------------------------------------------------------------------

all standard session tools are now serializable


was (Author: claude):
all standard tools are now serializable

> allow session toolbox serialization
> -----------------------------------
>
>                 Key: VELTOOLS-161
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-161
>             Project: Velocity Tools
>          Issue Type: Improvement
>    Affects Versions: 2.0
>         Environment: all
>            Reporter: Claude Brisson
>            Priority: Major
>             Fix For: 3.0
>
>
> 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?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org