Before deploying to the test environment a module that
includes an adapter for inbound processing, you must first generate
and wire a target component. This target component serves as the destination to
which the adapter sends events.
Before you begin
You must have generated
an export module, using the external service wizard.
About this task
Generating and wiring a target component for inbound processing
is required in a testing environment only. It is not necessary when
deploying the adapter in a production environment.
The target component
receives events. You wire the export to the target component
(connecting the two components) using the assembly editor in IBM® Integration Designer.
The adapter uses the wire to pass event data (from the export to the
target component).
Procedure
- Create the target component.
- From the Business Integration perspective of IBM Integration Designer,
expand Assembly Diagram and double-click the
export component. If you did not change the default value,
the name of the export component is the name of your adapter + InboundInterface.
An
interface specifies the operations that can be called and the data
that is passed, such as input arguments, returned values, and exceptions.
The InboundInterface contains the operations
required by the adapter to support inbound processing and is created
when you run the external service wizard.
- Create a new component by expanding Components,
selecting Untyped Component, and dragging the
component to the Assembly Diagram.
The cursor changes to the placement
icon.
- Click the component to have it displayed in the Assembly
Diagram.
- Wire the components.
- Click and drag the export component to the new component.
- Save the assembly diagram. Click .
- Generate an implementation for the new component.
- Right-click on the new component and select .
- Select (default package) and
click OK. This creates an endpoint
for the inbound module.
The Java™ implementation
is displayed in a separate tab.
- Optional: Add print statements to print the data
object received at the endpoint for each of the endpoint methods.
- Click to save the changes.
What to do next
Continue deploying the module for testing.