Migrating a custom mediation primitive
Follow these instructions to migrate your custom mediation
primitive's implementation.
Before you begin
About this task
Custom mediation primitives created in prior versions will work in IBM Integration Designer 6.0.2, however the only change that you can make to the primitive's properties is to edit the Java or Visual snippet.
To upgrade your custom mediation primitive, perform the following tasks:- Convert your custom Java code to an embedded snippet.
- In the mediation flow editor, identify the service reference used by the old custom mediation primitive. If the service reference is no longer used in the mediation flow, delete it.
- In the assembly editor, remove the reference from the mediation flow component, if necessary, and delete the Java component.
Procedure
- Select the custom mediation primitive on the canvas to view its properties. In the properties view, click the Details tab. The implementation is set to Java or Visual, and the custom code appears as a snippet in the embedded editor.
- Click the Convert to Embedded Snippet button to convert the Java or Visual code to an embedded Java or Visual snippet. Save the changes.
- After conversion to a Java or Visual snippet, all the classes in the snippet need to be fully qualified. If you see errors in the Java snippet code indicating that an object cannot be resolved or is not a type, use code assist (ctrl-space) to add the package qualifier.
- In the top section of the mediation flow editor, delete the service reference used by the old custom mediation primitive, if the reference is no longer used in the mediation flow. Save your changes.
- If you deleted the service reference in the mediation flow, you need to synchronize the references in mediation flow component. In the assembly editor, select the mediation flow component, right-click, and select Synchronize Interfaces and References > from Implementation.
- Delete the Java component, and save the changes in the assembly editor.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15