Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] serializing XOM objects

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Luca Passani <passani AT eunet.no>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] serializing XOM objects
  • Date: Tue, 31 May 2005 16:40:26 +0200


Adam,

thanks for this link: http://www.systemmobile.com/wp/?p=20

this will help in due time.

Luca

You have four, no, five, no, six options that don't involve calling for a change in the XOM API; they are, presented in no particular order:

1) Use something other than XOM.
2) Rewrite the bits of XOM needed to make Document objects Serializable.
3) Ignore the error messages.
4) Direct the servlet engine to not serialize the sessions.
5) Use a different servlet engine that doesn't spit out the error messages for non-Serializable Session attributes.
6) Write an HttpSessionActivationListener that serializes any XOM documents in a passivating session as XML, and another that, on session activation, reads them back as XOM Documents.

For (4), see http://www.systemmobile.com/wp/?p=20

For (6), start here (despite the URL, this is Servlet Spec Javadoc):
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html






Archive powered by MHonArc 2.6.24.

Top of Page