Create your own mediation logic by embedding a Visual or Java™ snippet
in a custom mediation primitive.
Prior to WebSphere® Integration Developer v
6.0.2, a custom mediation primitive was implemented by invoking a Java component.
Starting with WebSphere Integration
Developer v 6.0.2, Java code is embedded in the custom mediation
primitive. Follow these steps to create embedded Java code in your custom mediation primitive.
- In the Mediation Flow editor, add the custom mediation primitive
to the canvas, and wire the input and output terminals.
- Select the custom mediation primitive on the canvas to view its
properties. In the properties view, click the Details tab.
- Select an option for the Root property, which sets the scope
of the message that is available to the primitive ( / refers to the
entire message, /body refers to the message body, which contains only
the application data or payload of the message).
- Choose Visual to create a visual snippet,
or Java to create a Java snippet.
Important: - Switching between a Java snippet and a visual snippet may
cause the existing implementation to be lost.
- Do not edit the generated Java files,
as they will be overwritten when the mediation flow is saved.
- If you change the root of an existing custom mediation, you may need to
update your snippet to reflect the new scope.