-
1. Re: Smooks xml to Java
tfennelly Mar 13, 2008 12:35 PM (in response to hauch)This has been cleaned up and improved in Smooks v1.0, so I'll have to look back and see how this is done with v0.9 (used by the ESB).
Will post back later. -
2. Re: Smooks xml to Java
tfennelly Mar 16, 2008 4:26 AM (in response to hauch)Had a look at this and it's a bug in Smooks v0.9 (fixed in v1.0). It's to do with how it manages the lifecycle on lists.
The non-patch fix is straightforward enough and is available in the zip linked to below. Basically it's a new simple visitor that resets the bean list at the right time, resulting in a new "inner" list being added to each of the "outer" lists (as opposed to the same one being added to each).
Download the following zip: beanpop2.zip. See the "RestBean" class in the src and how it's used in the smooks-config.xml. -
3. Re: Smooks xml to Java
hauch Mar 25, 2008 4:22 AM (in response to hauch)I have tried it out, and it works fine.
Thanks a lot!
Is there a place, where it is described what it takes to perform the patch?