Close the Input Channel Manually
About this task
You can also close the input channel manually (that is, without shutting down the SWIFTNet Server Adapter or SWIFTNet7 Adapter) by creating and invoking a business process similar to the SWIFTNetCloseInputChannel or SWIFTNet7CloseInputChannel business process.
Note: Do not modify the SWIFTNetCloseInputChannel or SWIFTNet7CloseInputChannel
business process because this may affect the automatic opening of
the input channel.
The business process you create must rely on the input channel configuration in the SWIFTNet Server Adapter or SWIFTNet7 Adapter and the adapter must be enabled with the appropriate input channel settings.
To close the input channel manually:
Procedure
- Configure (with the appropriate input channel settings) and enable the SWIFTNet Server Adapter or SWIFTNet7 Adapter.
- Create a new business process based on the example above and name it SWIFTNetManualCloseInputChannel.
- Supply the following parameter in the business process: serverAdapterName, which indicates where to get the input channel configuration from (from which instance of the SWIFTNet Server Adapter or SWIFTNet7 Adapter). If you are using the default SWIFTNet Server Adapter or SWIFTNet7 Adapter, you do not need to specify this parameter. This is an optional parameter and the default value is SWIFTNetServerAdapter. This instance of the adapter must be enabled when you execute the business process.
- After you have finished editing, save the business process.
- Execute the business process you created, SWIFTNetManualCloseInputChannel, to send the Close Input Channel request.
- If the business process successfully completes, the input channel has been closed successfully. If an error occurs, it may indicate that your request to close the input channel is pending until any gaps are resolved. If this occurs, the resend scheduler attempts to resolve any gaps and the input channel will be closed automatically once all gaps resolved. If you try to send message(s) while the resend scheduler is processing, the messages are stored on local processing. Once the channel is closed, if you need to open it again, see Open an Input Channel Manually for more information.