Actually, I don't think XMLBeans classes work that well as value objects (I assume that's what you mean by VO). I tried converting a web services test program I'd written to Axis2 using XMLBeans classes for the data, and was stunned to see the performance drop by a factor of up to 10 compared to other implementations. The reason turned out to be that accessing data from XMLBeans generated classes is much slower than accessing the data from ordinary classes. Once I replaced the XMLBeans classes with ordinary Java classes for use by the program logic, and only used the XMLBeans classes for reading and writing XML, the performance increased dramatically. This was an unusual case, in that the processing made a lot of accesses to the data values in the objects, but does demonstrate a real issue.

 - Dennis

Shaun Farrugia wrote:

... Right now XMLBeans is really good at being a VO and unmarshalling to and from XML but I have no way to put business operations on these objects without using containment.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to