Running the WebSphere ESB user-defined converters sample
Complete the following steps to run the sample. Before you run the sample, ensure that you have imported the sample resources;
see WebSphere ESB user-defined converters sample.
Optional: Run the WebSphere ESB conversion tool without the user-defined converters, to see the conversion result by using the
built-in and placeholder converters.
Configure the WebSphere ESB conversion tool to use the user-defined converters.
Run the WebSphere ESB conversion tool with the user-defined converters.
Running the WebSphere ESB conversion tool without the user-defined converters
This step is optional. You can run the WebSphere ESB conversion tool with the built-in and placeholder converters, to
compare this result with the output when using the user-defined converters. For more information,
see Running the WebSphere ESB conversion tool. To run the WebSphere ESB conversion tool,
complete the following steps:
In the Application Development view, expand WebSphere ESB Projects
and right-click MigTest. Click Convert to Integration Bus Resources.
In the Conversion session filename field, enter a name for your conversion session.
Click Finish.
Click Next. The Configure WebSphere ESB resource options tab shows how each source resource is converted.
Click Next. The Configure global conversion options tab shows which converter is used for each primitive and binding.
Click Next. The Convert WebSphere ESB resources tab shows a summary of the conversion options.
Click Start conversion. The conversion runs and the Review results tab opens. Review the results of the
conversion, then click Save to save the conversion session. Your converted resources are shown in the
Application development view.
Configure the WebSphere ESB conversion tool to use the user-defined converters
To configure the WebSphere ESB conversion tool to use the user-defined converters, complete the following steps:
If the WebSphere ESB conversion editor is not open, in the Application Development view, expand
WebSphere ESB Projects and right-click MigTest.
Click Convert to Integration Bus Resources. In the Conversion session filename field,
enter a name for your conversion session.
In the WebSphere ESB conversion editor, open the Configure global conversion options tab.
To select the sample user-defined primitive converter for the Trace primitive, in the Mediation Primitive Converters table, in the row for the Trace
primitive, click Placeholder converter in the Converter class column. Click the button in the table cell. The Select Converter
Class window opens.
Click Select, then type TracePrimitiveConverter and click OK. Click OK.
To select the sample user-defined binding converter for the MQ export binding, in the Export and Import Binding Converters table, in the row with the entry
com.ibm.wsspi.sca.scdl.mq.impl.MQExportBindingImpl, click Placeholder converter in the Converter class column. Click the button in the table cell.
The Select Converter Class window opens.
Click Select, then type MQExportBindingConverter and click OK. Click OK.
Click Next. The Convert WebSphere ESB resources tab shows the user-defined converters in the
Summary of the conversion configuration table.
Running the WebSphere ESB conversion tool with the user-defined converters
After configuring the WebSphere ESB conversion tool to use the user-defined converters, complete the following steps to run the conversion with
the user-defined converters:
In the WebSphere ESB conversion editor, on the Convert WebSphere ESB resources tab, click
Start conversion. If you ran the conversion without the user-defined converters, click
OK to confirm that you want to overwrite the existing output project.
The conversion runs and the Review results tab opens. Review the results of the
conversion, then click Save to save the conversion session. Your converted resources are shown in the
Application development view.