xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Adam Constabaris <adamc AT unc.edu>
- To: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] serializing XOM objects
- Date: Tue, 31 May 2005 10:13:28 -0400
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
AC
Luca Passani wrote:
Elliotte Harold wrote:
the serialization only happens once in a while under exceptional circumstances (i.e. when the application server is restarted).
I'm sorry. I don't believe you, my son. Just because the serialization happens outside your control in the VM in no way means it takes zero time. Serialization costs, whatever format you use.
The solution you propose would be wasting lots of CPU at each and every HTTP request...
Luca
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
Re: [XOM-interest] serializing XOM objects
, (continued)
-
Message not available
-
Message not available
- Re: [XOM-interest] serializing XOM objects, Elliotte Harold, 05/31/2005
-
Message not available
-
Message not available
-
Message not available
-
Message not available
-
Message not available
-
Re: [XOM-interest] serializing XOM objects,
Luca Passani, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Elliotte Harold, 05/31/2005
- RE: [XOM-interest] serializing XOM objects, Michael Kay, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, John Cowan, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Luca Passani, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Elliotte Harold, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Luca Passani, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Elliotte Harold, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Luca Passani, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Adam Constabaris, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Luca Passani, 05/31/2005
-
Re: [XOM-interest] serializing XOM objects,
Luca Passani, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Michael Abato, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Wolfgang Hoschek, 05/31/2005
- Re: [XOM-interest] serializing XOM objects, Luca Passani, 05/31/2005
-
Message not available
-
Message not available
- Re: [XOM-interest] serializing XOM objects, Wolfgang Hoschek, 05/31/2005
Archive powered by MHonArc 2.6.24.