3 Replies Latest reply: Sep 25, 2006 2:41 PM by Clebert Suconic RSS

Simple starter question

David Castañeda Newbie

Sorry for this simple question ...

is the Jboss serialization mechanism producing smaller data output or the performance is only in the algorithm for producing this data.???

Is there a way to remove the required dependencies.. at least log4j??

Regards

David Castañeda

  • 1. Re: Simple starter question
    Clebert Suconic Master

     


    is the Jboss serialization mechanism producing smaller data output or the performance is only in the algorithm for producing this data.???


    It's a little bit of both.


    Is there a way to remove the required dependencies.. at least log4j??


    The only way would be to use Java trace machanism from Java5 but that would put dependencies on Java 5 and I don't want to avoid that.

    the other mechanism would be to not having logging at al (bad) or to use System.out (also bad) or to use any other built in framework (also bad).

    We had a discussion thread while ago about this... The best way was to keep log4j.

    As for trove is just beause I'm using trove on the objects cache inside JBossObject*Stream. (*=Input/output)

  • 2. Re: Simple starter question
    David Castañeda Newbie

    thanks a lot, my question was because my app is java web started so trying to kepp the minimun amount of dependant jars :) but as I'm able to modify the src I'll strip out all log statements :S


    The JBossSerialization mechanics also get improvement in use of Externalizable??

    Regards, David Castañeda

  • 3. Re: Simple starter question
    Clebert Suconic Master

     


    The JBossSerialization mechanics also get improvement in use of Externalizable??



    When you call writeObject from inside writeExternal methods yes.

    Say... if you writeObject(Long) that's going to just call write(Long) (and with an extra objectId to respect the graph of objects.