SWIFT Module 7.1 SP10.July 2020 | Configuring SWIFT Module for Message Exchange over SAA | Configuring SWIFT Interfaces | Using WebSphere MQ Adapter to Communicate with SWIFT | Configuring the WebSphere MQ Adapter
 
Configuring the WebSphere MQ Adapter
*To configure the webMethods MSMQ Adapter for the SWIFT FIN component
1. Configure WebSphere MQ Adapter connections. You will need to configure at least two connections:
*One connection to send messages to MQ Series.
*One connection to receive messages from MQ Series.
For information about configuring WebSphere MQ Adapter connections, see webMethods WebSphere MQ Adapter Installation and User’s Guide .
2. Configure settings to deliver outbound messages from the SWIFT FIN component to SWIFT via WebSphere MQ Adapter.
a. Configure a WebSphere MQ Adapter Put service to deliver SWIFT messages to an MQ Series queue. Use the connection that you configured in step 1 for sending messages to MQ Series.
For information about configuring the WebSphere MQ Adapter Put service, see webMethods WebSphere MQ Adapter Installation and User’s Guide .
b. Create a flow service or Java service that invokes the Put service you just configured in step a.
When you create the service:
*The input variables must include the variable msgBody with data type byte[] (or Object for a flow service).
*Before invoking the Put service that you configured in step a, the logic of the service must map the data in the msgBody input variable to the input of the Put service; that is, map the value to the putServiceInput/msgBody variable of the generated Put adapter service.
*The logic must invoke the Put service that you configured in step 2a.
c. Update the TPA for SWIFT messages to identify the correct method to deliver outbound SWIFT messages. To do so, update the following in the TPA:
In this section of the TPA...
Set this parameter...
To...
FINProcessInfo
Transport
MQ
MQSeriesInfo
putMessageHandlerService
The name of the service that you created in step 2b.
For more information about TPAs, see Customizing Trading Partner Agreements.
3. Define configurations for receiving inbound messages from SWIFT via WebSphere MQ Adapter.
a. Configure WebSphere MQ Adapter listeners and listener notifications. When configuring the listener, identify the connection that receives messages from MQ Series that you configured in step 1.
When you create a listener notification, you must specify a service to invoke when WebSphere MQ Adapter retrieves a message from MQ Series. For more information about this service, see the next step.
For information about configuring WebSphere MQ Adapter listeners and listener notifications, see webMethods WebSphere MQ Adapter Installation and User’s Guide .
b. Create a flow service or Java service that is invoked when WebSphere MQ Adapter retrieves a message from MQ Series. The last action that the flow or Java service takes must be to invoke the wm.fin.transport.MQSeries:getMQSeriesListenerService service. The service getListenerService processes the received FIN message. For more information about this service, see wm.fin.transport.MQSeries:getMQSeriesListenerService.
How the service is invoked depends upon the type of listener notification you created in step a:
*If you create an asynchronous listener notification, you must create a trigger that subscribes to the notification. When you create the trigger, set it up to invoke this service.
*If you create a synchronous listener notification, you must specify the name of this service when you configure the synchronous listener notification.