Book Image

Microsoft Dynamics AX 2012 R2 Services

Book Image

Microsoft Dynamics AX 2012 R2 Services

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R2 Services
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Asynchronous communication


So far, we have focused on synchronous communication using the NetTcp adapter. The filesystem adapter and the MSMQ adapter work asynchronously and differently from synchronous adapters.

Asynchronous adapters use the following two tables to store messages:

  • AifGatewayQueue: The AifGatewayQueue table is used in the asynchronous processing of both inbound and outbound messages. Inbound messages are stored in this table after they are retrieved by the gateway receive service. Outbound messages are stored in this table after they are processed by the outbound processing service.

  • AifOutboundProcessingQueue: The AifOutboundProcessingQueue table is used by the send service framework to store requests for outbound messages. These requests are then processed by the outbound processing service that stores a message in the AifGatewayQueue table.

The following flowchart displays the relationship between the tables and the classes that are used for asynchronous communication: