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.

  1. 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.
  2. Configure the WebSphere ESB conversion tool to use the user-defined converters.
  3. Run the WebSphere ESB conversion tool with the user-defined converters.

If you encounter any problems when you run the sample, see Resolving problems when running samples in the IBM Integration Bus documentation.

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:

  1. In the Application Development view, expand WebSphere ESB Projects and right-click MigTest. Click Convert to Integration Bus Resources.
  2. In the Conversion session filename field, enter a name for your conversion session. Click Finish.
  3. Click Next. The Configure WebSphere ESB resource options tab shows how each source resource is converted.
  4. Click Next. The Configure global conversion options tab shows which converter is used for each primitive and binding.
  5. Click Next. The Convert WebSphere ESB resources tab shows a summary of the conversion options.
  6. 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:

  1. 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.
  2. In the WebSphere ESB conversion editor, open the Configure global conversion options tab.
  3. 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.
  4. Click Select, then type TracePrimitiveConverter and click OK. Click OK.
  5. 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.
  6. Click Select, then type MQExportBindingConverter and click OK. Click OK.
  7. 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:

  1. 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.
  2. 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.

Back to sample home