• JAXB 2.0 vs. Simple 1.4 for object serialization

    Posted on July 29th, 2007 admin No comments

    I will examine JAXB and Simple according to the following criterias.
    1. Ease of use.
    2. Performance.

    1. Ease of use or fast implementation
    2. Performance
    Conclusion

    You might argue saying that comparing these two is like comparing jeans and socks, so lets first scope our discussion to my task, which was:
    1. Saving simple objects as XML files
    2. Read (deserialize) them back to Java objects.
    3. Support Lists.

    Simple performed just like it named – both serialization and deserialization was easy. Mapping object with annotation was very intuitive.
    JAXB – After 2 hours of struggling with the configuration I have finally managed to set up my objects and map them properly. Both serialization and deserialization was easy.

    The conclusion is Simple!
    :)

    Leave a reply