Hi Guys,

Hope all is going well.

Torsten and I were playing around some XStream serialization of components this evening.

Everything worked out really well, however part of the component's state that was written out to the resultant file was the 'm_logger' member variable in AbstractLogEnabled.

Since this was the full logger object, the resultant XML file for one object was around 350kb, rather than 3k :)

Since persistence of any component will require the logger to be re-set on the component when it's recovered we thought it would make sense to set the m_logger field to 'transient' in AbstractLogEnabled?

The change would be:

  private Logger m_logger;

becomes:

  private transient Logger m_logger;

Since this is a change to framework though, and one in the area of serialization where we don't know all the details, we thought we'd bring it up on the list - what does everyone think?

Cheers,

Marcus


-- ..... ,,$$$$$$$$$, Marcus Crafter ;$' '$$$$: Computer Systems Engineer $: $$$$: ManageSoft Corporation $ o_)$$$: Frankfurt am Main, Germany ;$, _/\ &&:' ' /( &&& \_&&&&' &&&&. &&&&&&&:

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Apache Excalibur Project -- URL: http://excalibur.apache.org/



Reply via email to