How the
adapter works
The following sections describe how the adapter processes
business objects.
Business
object processing
The adapter receives business object requests from an
integration broker and builds the parameter list for the RPG program,
then establishes a connection with an iSeries or AS/400 system and
executes the program.
The incoming business object contains the connection child attribute.
The information in this attribute is used to connect to the iSeries
or AS/400 system.
Connector
operations
The connector passes business objects between the integration
broker and a business object handler. The connector:
- Registers the BOHandler with the framework.
- The framework sends the BO request to the BOHandler.
- The BOHandler uses the attribute information in the incoming
business object to build the RPG program parameter list.
- The BOHandler calls the RPG program running on the iSeries or
AS/400 system.
Note:
This is essentially a call to execute an RPG program
on the iSeries or AS/400 system which then returns either a success
or fail message.
- The BOHandler then returns the results of the execution of the
RPG program to the adapter framework. It also populates the business
object with the returned parameters.
The adapter is written in Java and consists of two components:
- Connector
- Business object handler
