Calling a Synchronous Queue from Mendix
In this microlearning, we will focus on integrating Mendix with eMagiz using the eMagiz Mendix module. Here, we will guide you through the process of calling a synchronous queue from Mendix, which is essential for efficient data exchange between your systems.
Should you have any questions, please get in touch with academy@emagiz.com.
1. Prerequisites
- Intermediate knowledge of the eMagiz platform
- Access to a Mendix application
- Access to the Deploy phase of your eMagiz project
- A connection between Mendix and eMagiz Designed and Created
- Using eMagiz Mendix version 5.0.0 or higher.
2. Key concepts
This microlearning centers around calling a synchronous queue from Mendix
- With eMagiz Mendix Connector, we mean: A Mendix module developed and maintained by eMagiz that simplifies connect a Mendix application to an eMagiz project for data traffic between both systems.
To call a synchronous queue from Mendix, you need the following:
- Export object (including mapping)
- Name of the queue on which you want to publish the data
- Import object (including mapping)
3. Calling a synchronous queue from Mendix
With the help of the eMagiz Mendix module created by the eMagiz team, you can easily connect between Mendix and eMagiz for data integration. In this microlearning, we will focus on calling a synchronous queue from Mendix. For sending data to eMagiz, we offer the following options to send data to the queue:
- Send a message and receive a single response
- Send a message and receive a list response
3.1 Sending synchronous messages and returning a single object
3.1.1 Request
- Request Mapping parameter: Mendix Domain Model object to export JSON or XML using specified export mapping
- Request Export mapping: Contains the export mapping from domain model object to XML or JSON
- Validate Request: Whether request should be validated or not
- Request Queue: enter the proper value for the onramp request queue of eMagiz where the request message needs to be put on.
3.1.2 Response
- Response queue: enter the proper value for the onramp queue of eMagiz where the response message needs to be picked up from
- Validate Response: Whether response should be validated or not
- Response import mapping: Mapping object from XML/JSON to domain model object
- Response Object type: Output domain model object of the import mapping and input for the microflow
3.2 Sending synchronous messages and returning a list
3.1.1 Request
- Request Mapping parameter: Mendix Domain Model object to export JSON or XML using specified export mapping
- Request Export mapping: Contains the export mapping from domain model object to XML or JSON
- Validate Request: Whether request should be validated or not
- Request Queue: enter the proper value for the onramp request queue of eMagiz where the request message needs to be put on.
3.1.2 Response
- Response queue: enter the proper value for the onramp queue of eMagiz where the response message needs to be picked up from
- Validate Response: Whether response should be validated or not
- Response import mapping: Mapping object from XML/JSON to domain model object
- Response Object type: Output domain model object of the import mapping and input for the microflow
4. Key takeaways
To call a synchronous queue from Mendix, you need the following:
- Export object (including mapping).
- Name of the queue on which you want to publish the data.
- Import object (including mapping).
Note: To make a connection in allowing data to travel between A and B, you need to fill in the correct constants and set up your Keystore and Truststore correctly. For more information check out this Novice - Mendix Connectivity microlearnings.
5. Suggested Additional Readings
If you are interested in this topic and want more information, please read the release notes provided by eMagiz that accompany the eMagiz Mendix Connector version you have selected. Furthermore, check out these links: