Hi
On 25/11/13 08:39, Jose María Zaragoza wrote:
Hello:
I'm using Apache CXF 2.7.3 and I need to develove a new service with
JSON support
Default JSON provider requires Jettison library
But I've got problems with namespaces. I could to ignore namespaces
setting namespaceMap property. And all works fine
But I've tried JacksonJaxbJsonProvider and I don't need to set any map
to ignore namespace . And all works fine too.
So, my question is about performance terms ( or other points that I
don't have thought )
What do you recommend to use ? is there any better than another ?
Another choice I must consider ?
Jackson is a streaming writer, so if a service has medium to large JSON
sequences, then it will probably start making a difference.
Generally speaking, Jackson is a more sophisticated/advanced provider.
Jettison is a much simpler provider. I think that CXF Provider and
Jettison are quite flexible though. In some scenarios it is more
realistic to set various Jettison properties than adding JSON
annotations, etc.
Please experiment, if Jackson works for you then there's no need to be
concerned, it is a good provider
thanks, Sergey
Thanks and regards
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com