Red Hat Training

A Red Hat training course is available for Red Hat Fuse

13.12. Map Creation from Record Set Execution Example

A map created from a record set would be executed as follows:
Smooks smooks = new Smooks(configStream);
JavaResult result = new JavaResult();
 
smooks.filterSource(new StreamSource(messageReader), result);
 
Map<String, Person> people = (Map<String, Person>) result.getBean("people");
 
Person tom = people.get("Tom");
Person mike = people.get("Mike");