The patch needs to add a new configuration parameter to the SU jbi descriptor: 'xsl'
<jbi:consumes interface-name="generatedNs:JMSService" service-name="generatedNs:JMSService" endpoint-name="JMSServiceSOAP">
<!-- CDK specific elements -->
<petalsCDK:timeout>30000</petalsCDK:timeout>
<petalsCDK:mep>InOut</petalsCDK:mep>
<!-- Component specific elements -->
<jms:jndi-provider-url>tcp: <jms:jndi-initial-context-factory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</jms:jndi-initial-context-factory>
<jms:jndi-destination-name>dynamicQueues/FOO.BAR</jms:jndi-destination-name>
<jms:jndi-connection-factory>QueueConnectionFactory</jms:jndi-connection-factory>
<jms:operation>{http: <jms:transacted>false</jms:transacted>
<jms:xsl>myXsl.xsl</jms:xsl>
</jbi:consumes>
And to the SU a XSL stylesheet declaring parameters to use properties of the MapMessage:
<xsl:stylesheet version="2.0" xmlns:xsl="http:>
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:param name="myShort">1</xsl:param>
<xsl:param name="myInt">2</xsl:param>
<xsl:param name="myString">A</xsl:param>
<xsl:template match="/">
<xsl:element name="root">
<xsl:attribute name="id">
<xsl:value-of select="$myShort" />
</xsl:attribute>
<xsl:element name="name">
<xsl:value-of select="$myInt" />
</xsl:element>
<xsl:element name="area">
<xsl:value-of select="$myString" />
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
This XSL should be into the directory 'jbi' of the source code tree.
A first patch implementing this new feature as prototype.