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
- In WebSphere Integration Developer, switch to the Business Integration
Perspective by clicking . Then click Business
Integration (default) and click OK.
- Right-click the FlatFileChunksAssemblyModule, and select .
The Assembly Diagram window appears with the modules Import component in view.
Figure 1. Assembly Editor selection
- 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
- 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.
- 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
- 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.
- 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
- 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.
- Right click Component1 and select .
- Select the default package and click OK.
- In the generated Java implementation, scroll to the emitFlatFile method.
- Click .
Result
A reference binding is created
for your adapter project.
What to do next
Use WebSphere
Integration Developer to test the assembled adapter package.