[jdom-interest] JDom-Dokument: Serialized oversized

Elliotte Rusty Harold elharo at metalab.unc.edu
Fri May 4 12:28:39 PDT 2001

At 7:41 PM +0100 5/4/01, Sven Behrens wrote:
>I am very new to JDom and just had the following idea:
>"Use the JDOM-Document to store a complex database-entity composed of
>entries from many tables in the database scheme, because I can benefit
>from an XML-presentation."
>This will be a part of a result I have to communicate via RMI. So this
>needs to be compact for performance-reasons.

Then you can't use RMI. Java object serialization is notoriously 
bloated, slow, and inefficient. This isn't a JDOM unique problem. In 
fact one common solution is to replace Java's built-in serialization 
with XML which is much smaller and faster. It's a myth that binary 
file formats are necessarily smaller or faster than text formats. 
Object serialization in Java is a classic counter-example. This 
really has very little to do with JDOM.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |

More information about the jdom-interest mailing list