On Mon, Feb 2, 2009 at 8:56 AM, lfs_neves <lfs_neves@...> wrote:
> --- In aalto-xml-interest@yahoogroups.com, Tatu Saloranta
>
> <tsaloranta@...> wrote:
>
>> Given above, it might be quite easy to implement json-based web
>> service, where data binding is done using Jackson instead of JAXB. I
>> would expect such a service to be still faster than Jibx
>>
>> What do you think?
>
> It sounds cool, I was thinking something similar but using Google
> Protocol Buffers, I might as well test json.
> It would make a nice comparison.
Cool! I have tested PB earlier, and it's quite easy. The main
challenge was that it's a bit of apples & oranges, given how tightly
coupled PB is. Messages are not self-contained (without schema you
have little idea what data is about, since integer codes are used for
message types), and you can't really bind data to other objects,
AFAIK you must use objects PB generates.
That's ok as long as test framework doesn't have problems with it --
in my case it was bit problematic, but I was able to try it out by
refactoring code. Or you can wrap PB objects with beans, although
that's akin to writing a data binding lib of your own. :-)
But it would be very interesting to see how different formats & libs compare!
So let me know how things work.
-+ Tatu +-