The adapter communicates with the target application to process requests. Prior to processing the requests, the adapter creates threads to process the request. These threads are created by the adapter during its initialization.
Multithreading is the ability of the adapter to manage multiple requests from and to the target application without having multiple adapter instances running. Based on the load, as and when requests arrive; they are scheduled among the available threads. Each thread has a unique identity. The adapter keeps track of the status of a request processed by each thread.
To receive requests from a target application, dispatcher threads are created by the adapter. Each adapter creates dispatcher threads in a different way (this is explained in detail in the following section). To send requests to a target application, SDK dispatcher threads are used by the adapter.
Based on the requirements of a given implementation, the adapter can be configured to run in a multithreaded mode or with multiple adapter instances (RCVMQ). The merits and demerits of both are listed in the following sections.
TIBCO Adapter™ Concepts April 2005 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |