This sample is provided to demonstrate how the WebSphere Adapter nodes work. The sample uses the TwineBall Adapters, which have a self contained Enterprise Information System (EIS). In this sample, an existing system inserts data into the EIS by using WebSphere MQ queues to synchronize the two systems.
The TwineBall Example EIS Adapter contains a set of XML schemas and an internal Cloudscape database, allowing it to be mapped using the Enterprise Metadata Discovery (EMD) tool. The TwineBall Adapter can therefore be used in the same way as a production ready EIS, without the requirement for installation, configuration, or setup. The TwineBall EIS contains only one top level Business Object (BO): a Customer object. A Customer has the following structure:
The message flow that is used in this sample uses the TwineBallRequest node to call the EIS.
The sample shows how an existing system, which stores customer information in simple C style data structures, can be integrated to an EIS to synchronize the two systems. Responses that are generated by the TwineBall EIS can be sent to a queue defined in the header of the incoming message.
The following diagram shows the TwineBall sample message flow:
The TwineBall sample message flow performs the following actions:
The returned value is the primary key of the new Customer object followed by a 4 byte integer. The integer is set to 1 in the case of success, or a null primary key followed by a 4 byte integer set to 0, in the case of failure.
Running the example involves:
The sample provides: