Feb 28th, 2006, 02:33 PM
java xml mapping
I have this problems. i receive from a legacy system some information via websphere mq. The messages are formated in xml (sort of). I need to map de information in this menssages to pojos and i need to convert some pojos to xml messages.
I read about sax, castor, etc but i dont know what to use
Any idea ???
Feb 28th, 2006, 03:25 PM
To get a grasp of what can be done I suggest you take a look at commons-digester (http://jakarta.apache.org/commons/digester/). It is not very performant, but I think it gives you a good insight in possible ways of "connecting" java to xml.
Feb 28th, 2006, 04:00 PM
you may want to search under XML Data Binding. There is so much out there.
For example, this page gives some benchmarks of a few:
Mar 1st, 2006, 08:49 AM
You will have to decide if its raw performance, ease of use or the midle ground...
Depending on if your looking for performance, ease of use or somewhere in the midle a lot of frameworks exist for xml to java to xml mapping.
Per raw performance we have been using JibX a lot which per speed is a great mapping framework. However it does depend on bytecode modification...