Generating reference bindings for inbound operations

After you have generated service artifacts, you can generate reference bindings using WebSphere® Integration Developer.

Before you begin

Prerequisite: An adapter project must be created and configured on your workspace. Once an adapter project is created, you must generate reference findings to bind to the service component.

Why and when to perform this task

Reference bindings are used by other WebSphere Business Integration SCA components to access the adapter. You create a reference to the adapter from the project module so as to link the adapter to the other server processes.

Steps for this task

  1. From WebSphere Integration Developer window, switch to the Business Integration perspective by selecting Window > Open Perspective > Other from the menu bar. All perspectives are displayed. Select Business Integration perspective in WebSphere Integration Developer.
  2. In the Business Integration Perspective of WebSphere Integration Developer, right-click the module, and select Open With > Assembly Editor. The Assembly Diagram window appears with the modules Import component in view.
  3. To create a new component, click the top-most icon in the left-side (vertical) frame of the Assembly Diagram Window.

    The Assembly Diagram window shows the new menu of icons.

    The Assembly Diagram window

    A new menu of icons appears. The graphic above illustrates the new menu of icons.

  4. Create a Component with no implementation. As illustrated in the graphic below, drag the Create a Component icon into the Assembly Diagram window.

    Drag the Create a Component icon into the Assembly Diagram window to create a Component with no implementation.

    The Assembly Diagram window

  5. Wire the Component to the import module. Click and drag the module‘s Import component to the new component. This draws a wire from the Import component to the new component.
  6. In the Add Wire dialog box, click OK. The new component displays in the Assembly Diagram window with a wire that connects it to the modules Import component.
  7. Create a Java™ component that will acts like an endpoint listener. During event delivery of the inbound operation, the adapter invokes the READ method of the component implementation and passes the inbound business object as a parameter.
    1. As illustrated in the graphic below, right click the component and select Generate implementation > Java.

      The Java Component acts like a listener for the endpoint.

      The Assembly Diagram window

    2. Select the package where the Java code should be created and click OK.
    3. As illustrated in the graphic below, enter the Package name when prompted and click OK.

      Enter the Package Name in this dialog box.

      Package name dialog box

    4. Click OK in the Generate Implementation window.
    5. In the generated Java implementation, scroll to the READ method. As illustrated in the graphic below, you can add custom code inside the READ method to process the delivered business object according to your specific business needs.

      Example of custom code for the READ method.

      Sample READ code

  8. Save the file, File > Save.

What to do next

Now, you are ready to export the EAR file.

Terms of use |

Last updated: Sun Mar 12 11:47:11 2006

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)