Customizing senders
When a WebSphere Partner Gateway receiver component receives
a business document from a trading partner, the sequence of steps
is as follows:
- The document processor component unpackages the business document
in accordance with the business protocol for that document type.
- The participant connection determines how the document should
be processed and routed.
- The document is processed and packaged according to the business
protocol requirements of the "To" protocol and the "To" packaging
specified by the participant connection.
- The delivery manager picks up the business document and sends
it to the trading partner. The "To" gateway determined from
the participant connection gives the configuration to use for sending
the packaged business document to the recipient trading partner.
- The delivery manager invokes the sender framework to send the
document. The sender framework manages the senders and sending of
the document.
- The sender performs the actual sending of the packaged business
document to the target trading partner.
The sender is responsible for sending the packaged business documents
to the target trading partner. If the business protocol requires
such action, the sender may synchronously receive the response business
document for the document it is sending. The sequence is as follows:
- The sender receives the response business document according
to the business protocol semantics.
- If the sender obtains the response business document, the sender
introduces the document into the system.
- After the response document is introduced into the system, the
WebSphere Partner Gateway document processor processes the document
like any other business document.
- The document processor unpackages the response document, using
the participant connection to look up information for the document.
- The response business document is processed and packaged according
to the business protocol requirements of the "To" protocol
and the "To" packaging given by the participant connection.
- The delivery manager picks up the business document and sends
it to the trading partner.
- If the response document is in response to a request document
that was synchronously received by the receiver, the delivery manager
gives this document to the receiver. In this case, the receiver
sends the response to the waiting trading partner.
If the request document was not synchronously received, the delivery
manager processes the response document the same way that
it processed the request document.
The sender handles the final stage in the data flow of WebSphere
Partner Gateway. It picks up documents from the BPE, packages them,
and sends them to their destinations, based on information
in the console-configured gateway.
In the case of a synchronous request, it can also process the response
document.
This chapter describes sender customization and the processing
done by senders. You can customize the sending of documents in either
of two ways:
- By creating new senders
- By creating new sender handlers
The chapter describes both ways of customizing senders:
An additional section describes development and deployment issues:
An API listing and example code follows in the next chapter.
