Re: [tools] Toolbox preventing session serialization
Christopher Schultz <[email protected]> Tue, 11 Mar 2014 15:54:12 -0400
| Newsgroups | gmane.comp.jakarta.velocity.user |
|---|---|
| Message-ID | <[email protected]> |
Claude, On 3/11/14, 4:57 AM, Claude Brisson wrote: > The session toolbox is always created by default, to let users access > standard session tools. > > There is a create-session parameter you can use for this purpose, see: > http://velocity.apache.org/tools/releases/2.0/config.xml.html Is it possible to disable all of the session-related tools -- even those loaded by default? When I switched from the "old" format to the new tools format, it seems I'm getting a large number of out-of-the-box tools that I don't necessarily need. If I can disable those that are destined for the user's session, will the session toolbox disappear as well? Is it possible to completely-disable the default tools? > Yes, the problem is org.apache.velocity.runtime.log.Log, which is not > serializable. It's rather logic, since a logger is basically an output > stream. But some session standard tools keep a reference on a logger. > There is a design issue we should adress, here. It seems reasonable to make the logger transient, and then attempt to obtain a local logger in readObject(). That shouldn't really affect the design in general... just the implementation of those tools that require a logger. -chris
signature.asc
(application/pgp-signature, 924 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTH2nkAAoJEBzwKT+lPKRYUxcQAJrzMiv6b6sb4ON2JKLP00dj eJAamQams+QK9AsVNBOTwViq3ZhkOf6TXjcaOJJOPqoDY+4OPhQqLbXk7+Cg8ipJ 65+MsgESBRv+jRCnUtaeX7BEzAR2uigEoILZHInufkVb1ygeLH+XfleYTQbPJSsQ +LQrQ10jQXWLpL5ioHPHRhwWyvTGiyqo6ClGwjCOaGMnhOPDn6HbIm71hH7ObdXU N/H59FMopB/ZJHn+MEvWJmdPbGtv17+s8CkENldeASYKZng2b+aAGpZYOZF6rotR WPoBTAdeyZyshRhRoCHywqi7n/mg/97CxCI5jGdgyJOKaPlQSOMMXYzjgb/CKAdX EFZmcVZFdkcG4O0PXYYUC5i+ZbELDUjaJ8fkN0uCsQ5PFUvG/WmFme3EOA0pW8ha ffuDv//b7RH1MBaU89Pj/fEDpJ3PwPOUkrHsN6LFVx7P1/kbJKnD6Ply0BXA23yZ hjk8gigDXNj34SmT1pASZu9+FlEf+jOWDm1h5la0l3t7EajZJUmCOBdwX4UBcbvh XTXh8sfCsGj5E6pgJDJN5Jl1SBAXxIVzJo4LeU6zDc40zqvSjiYOMVbJvW51G9PT eI4JP20ASbQ7MRVfZUvgTF7dOSarjehTjhTETQfOqoSB8oeQ3shX66Bpzb660fHF OJbf6PkiosLKIU8F9daK =AMpH -----END PGP SIGNATURE-----