Generating reference bindings

Use WebSphere® Integration Developer to generate reference bindings that are used by other WebSphere Business Integration SCA components to access the adapter.

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

Create a reference to the adapter from the project module to link the adapter to other server processes.

To generate reference bindings, use the following procedure.

How to perform this task

  1. In WebSphere Integration Developer, switch to the Business Integration Perspective by clicking Window > Open Perspective > Other. Then click Business Integration (default) and click OK.
  2. Right-click the FlatFileChunksAssemblyModule, and select Open With > Assembly Editor. The Assembly Diagram window appears with the modules Import component in view.
    Figure 1. Assembly Editor selection
    This image is described in the surrounding text.
  3. In the Assembly Diagram window, create a new component by clicking the top most icon in the left-side (vertical) frame of the Assembly Diagram Window. A new menu of icons appears.
    Figure 2. Component (with no implementation type) icon
    This image is described in the surrounding text.
  4. Create a Component with no implementation by dragging the Create a Component icon into the Assembly Diagram window. To automatically organize the workspace, right-click in the Assembly Diagram window and select Arrange Contents Automatically.
  5. Create a wire from the FlatFileInboundInterface to the Component1 by clicking and dragging the module‘s Import component to Component1. This draws a wire from the FlatFileInboundInterface to Component1.
    Figure 3. Creating a wire from FlatFileInboundInterface to Component1
    This image is described in the surrounding text.
  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 wire from Component1 to the FlatFileOutboundInterface. This enables Component1 to make calls to the FlatFileOutboundInterface.
    Figure 4. Creating a wire from Component1 to FlatFileOutboundInterface
    This image is described in the surrounding text.
  8. 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 Component1 and select Generate implementation > Java.
    2. Select the default package and click OK.
    3. In the generated Java implementation, scroll to the emitFlatFile method.
  9. Click File > Save.

Result

A reference binding is created 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)