Woof! On Mon, 05 Oct 2009 16:22:58 -0400, Marden Marshall <[email protected]> wrote:
> I prefer schema binding over annotations. If automated as part of the > build process, it is easier to maintain and less error prone than > manual injection of annotations. The downside of this appears to be Eclipse integration. Not that it cannot be done, but it requires each Eclipse user to install the correct plug-in, and get it working, else the code will not work and exceptions will be thrown while running it. The advantage of JAXB over JiBX in this case, would be that JAXB is part of Java 6, and Eclipse supports it natively, while JiBX needs libraries, and an Eclipse plug-in to sprinkle magic on generated classes at compile time. JAXB doesn't need a schema or any external XML file to describe the bindings. For simple stuff I prefer this, as I really hate "coding" in XML. The advantages of JiBX over JAXB, would be speed (according to the JiBX author, on RH 7, Java 1.4, and JiBX is faster than JAXB 1.0. Dunno about on newer OS, Java version, and JAXB 2.0). Also JiBX provides some extra rigor, with the schema binding. JAXB can generate code from a schema, but I like that not at all. Interesting stuff, I hadn't come across JiBX before, let alone know it was already being used in sipXecs. Thanks for the pointers. --Woof! _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
