Creating Java code in a custom mediation primitive

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.
  1. In the Mediation Flow editor, add the custom mediation primitive Picture of custom mediation icon to the canvas, and wire the input and output terminals.
  2. Select the custom mediation primitive on the canvas to view its properties. In the properties view, click the Details tab.
  3. 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).
  4. 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.
Related concepts
Tips for creating Custom mediation primitives
Customizing behavior with visual snippets
Related tasks
Invoking an import or a Java component from a custom mediation primitive
Migrating a custom mediation primitive

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.