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