Show Table of Contents
1.27. Checking the Smooks Execution Process
- To obtain an execution report from Smooks you must configure the
ExecutionContextclass to produce one. (Smooks will publish events as it processes messages.) The following sample code shows you how to configure Smooks to generate a HTML report:Smooks smooks = new Smooks("/smooks/smooks-transform-x.xml"); ExecutionContext execContext = smooks.createExecutionContext(); execContext.setEventListener(new HtmlReportGenerator("/tmp/smooks-report.html")); smooks.filterSource(execContext, new StreamSource(inputStream), new StreamResult(outputStream)); - Use the
HtmlReportGeneratorfeature to assist you when debugging.NoteYou can see a sample report on this web page: http://www.milyn.org/docs/smooks-report/report.htmlNoteAlternatively, you can create a customExecutionEventListenerimplementation.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.