SWIFT Module 7.1 SP10.July 2020 | Getting Started | Concepts | SWIFTNet Component | SWIFTNet Component Store-and-Forward Mode | Retrieving Messages and Files from a Queue | Push Mode
 
Push Mode
When push mode is used, the initiative to deliver a message resides with SWIFTNet SnF. The message is pushed from SWIFTNet SnF and is received by the server on SWIFTNet Link. In this server, a regular SwCallback() is invoked. The input primitive is the message from the queue within a SwInt:HandleRequest or Sw:HandleFileRequest. The server application ensures that the message is stored safely, and then responds with an acknowledgment to SWIFTNet SnF indicating how the message was received.
The following diagram illustrates the store-and-forward InterAct Push session. See the table below the diagram for additional information.
Step
Description
1
The server process opens the required security context with Sw:HandleInitRequest and SwSec:CreateContextRequest. The server prepares to process the incoming requests.
2
The client process starts, sends the Sw:InitRequest, opens the desired security context, acquires the queue in pull mode, and starts delivering messages.
3
The server receives a SwInt:HandleRequest request.
4
The server sends an acknowledgment in SwInt:HandleResponse.
5
Messages are removed from the queue.
6
The client releases the queue.