Generating reference bindings

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

Before you begin

An adapter project must be created and configured on your workspace. In addition, WebSphere Integration Developer must be running in order to complete this task.

About this task

Reference bindings bind the adapter project to the service component and are used by other WebSphere Business Integration SCA components to access the adapter. Creating a reference to the adapter from the project module links the adapter to the other server processes.

To generate reference bindings, use the following procedure.

How to perform this task

  1. Expand FlatFileInboundModule and right-click the next level of FlatFileInboundModule. Select Open With > Assembly Editor. The Assembly Diagram window appears with an Import component in view.
  2. In the Assembly Diagram window, hover over the icons and find Component (with no implementation type).
    Figure 1. Component (with no implementation type) icon
    This image is described in the surrounding text.
  3. Create a Component with no implementation type by single-clicking the icon and then selecting the second tier Component (with no implementation type) icon. Drag it into the Assembly Diagram window and single-click to place the icon. To automatically organize the workspace, right-click in the Assembly Diagram window and select Arrange Contents Automatically.
  4. To 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.
    Figure 2. Adding a wire to the new component
    This image is described in the surrounding text.
  5. 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.
  6. Create a Java component that will act like an endpoint listener. During event delivery of the inbound operation, the adapter invokes the emitFlatFile method of the component implementation and passes the inbound business object as a parameter.
    1. Right click the component and select Generate implementation > Java.
    2. Select the default package and click OK.
  7. Click File > Save.

Result

You have just created reference binding for your adapter project.

What to do next

Use WebSphere Integration Developer to test the assembled adapter package.

Terms of use |


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