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

Once an adapter project is created, you must generate reference findings to bind to the service component. 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.

To generate reference bindings, use the following procedure.

How to perform this task

  1. From the WebSphere Integration Developer window, switch to the Business Integration perspective.
    1. Select Window > Open Perspective > Other.
    2. Select the Business Integration from the list of perspectives that are displayed.
  2. In the Business Integration Perspective of WebSphere Integration Developer, right-click the inbound module, and select Open With > Assembly Editor. The Assembly Diagram window appears with the modules Import component in view.
    Figure 1. Open Assembly Editor
    This image is described in the surrounding text.
  3. Click the Component (with no implementation type) icon.
    Figure 2. The Component icon in the Assembly Diagram window
    This image is described in the surrounding text.
    A new menu of icons appears.
  4. Click the Component (with no implementation type) icon and drag the component selection to the editor workspace.
    Figure 3. Second component icon
    This image is described in the surrounding text.
  5. Click the Wire icon and drag the wire from FlatFileInboundInterface to Component1 to create the wiring.
    Figure 4. Component wiring window
    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 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 package where the Java code should be created and click OK.
    3. Enter the Package name when prompted and click OK.
    4. Click OK in the Generate Implementation window.
    5. In the generated Java implementation, scroll to the emitFlatFile method.
    6. Add custom code inside the emitFlatFile method to process the delivered business object according to your specific business needs.
  8. Click File > Save.

Result

You have created a 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)