Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

12.5. Process Transformation Configuration

This is an example of how to configure a transformation.
<actions mep="OneWay"> 
  <action class="org.jboss.soa.esb.actions.SystemPrintln" name="print-before"> 
    <property name="message" value="[transform_XML2XML_simple] Message before transformation"> 
  <action class="org.jboss.soa.esb.smooks.SmooksAction" name="simple-transform"> 
    <property name="smooksConfig" value="/smooks-res.xml"> 
    <property name="reportPath" value="/tmp/smooks_report.html"> 
  <action class="org.jboss.soa.esb.actions.SystemPrintln" name="print-after"> 
    <property name="message" value="[transform_XML2XML_simple] Message after transformation"> 
Line 1
mep stands for message exchange pattern. In this example, the requester invokes a service by sending it a message.
Lines 2-4
These configurations allow the message to be written to the server log before and after its transformation.
Line 5
This is where the SmooksAction is specified.
Line 6
This is where the XLST is specified.
Line 7
Generates a rep[ort of the transformation.