Last modified by Erik Bakker on 2025/02/25 16:09

From version 3.1
edited by Erik Bakker
on 2022/06/12 10:00
Change comment: There is no comment for this version
To version 7.1
edited by Erik Bakker
on 2022/06/12 10:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Install an eMagiz Mendix Connector
1 +Configure an eMagiz Mendix Connector
Content
... ... @@ -1,74 +1,170 @@
1 1  {{container}}{{container layoutStyle="columns"}}(((
2 -In this microlearning, we will focus on installing an eMagiz Mendix Connector.
2 +In this microlearning, we will focus on configuring an eMagiz Mendix Connector.
3 3  With the help of this Mendix module created by the eMagiz team, you can easily connect between Mendix and eMagiz for data integration.
4 4  
5 5  Should you have any questions, please contact academy@emagiz.com.
6 6  
7 7  * Last update: January 27th, 2021
8 -* Required reading time: 5 minutes
8 +* Required reading time: 10 minutes
9 9  
10 10  == 1. Prerequisites ==
11 11  * Basic knowledge of the eMagiz platform
12 12  * Access to a Mendix application
13 13  * Access to the Deploy phase of your eMagiz project
14 +* A connection between Mendix and eMagiz Designed and Created
15 +* Using eMagiz Mendix version 4.2.0 or higher. For legacy configuration please see the user guide **Install guide eMagiz Connector for Mendix**
14 14  
15 15  == 2. Key concepts ==
16 -This microlearning centers around installing an eMagiz Mendix Connector
18 +This microlearning centers around configuring an eMagiz Mendix Connector
17 17  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.
18 18  
19 -To install an eMagiz Mendix Connector you need the following:
21 +To configure an eMagiz Mendix Connector you need the following:
20 20  
21 -* The Mendix Module called the eMagiz Mendix Connector (available in eMagiz under Deploy of your project)
22 -* Access to a Mendix project which has no eMagiz Mendix Connector in it at this moment.
23 +* Configure the After Startup and Before Shutdown
24 +* Configure the Access rights to the eMagiz Mendix Module
25 +* Configure the constants
26 +* Configure the Keystore/Truststore
23 23  
24 24  
25 25  
26 -== 3. Install an eMagiz Mendix Connector
30 +== 3. Configure a eMagiz Mendix Connector
27 27  
28 -To install the eMagiz Mendix Connector in a Mendix app, the following steps need to be performed.
32 +To configure the eMagiz Mendix Connector in a Mendix app, the following steps need to be performed.
29 29  
30 -=== 3.1 Download the eMagiz Mendix connector
31 -* The eMagiz Mendix connector can be downloaded via eMagiz. Log in and then go to one of the busses you have access to.
32 -* Go to **Deploy -> On Premises -> Runtime Downloads** the eMagiz Mendix connector can be downloaded.
33 -You must look at the column Mendix version. It must correspond to the Mendix version of the project where you want to use the eMagiz Mendix Connector.
34 -If you do not do this then the connector will **not** work.
34 +=== 3.1 Configure the After Startup and Before Shutdown
35 +The first step of configuring your eMagiz Mendix Connector is to connect the After Startup and the Before Shutdown microflow that eMagiz provides you as part of the Use Me folder to the existing
36 +After Startup and Before Shutdown microflow of the project itself.
35 35  
36 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-install-emagiz-mendix-connector--emc-download-screen.png]]
38 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--after-startup-before-shutdown-emagiz.png]]
39 +
40 +After you have linked them to the project after startup and the project before shutdown ensure that these microflows are indeed triggered on the Project level.
41 +You can verify this by navigating to **Project Settings -> Runtime**
42 +
43 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--after-startup-before-shutdown-project.png]]
44 +
45 +This configuration only needs to happen **once**.
37 37  
38 -=== 3.2 Importing eMagiz Mendix connector
47 +=== 3.2 Configure the Access rights to the eMagiz Mendix Module
48 +It is recommended that only the administrator user role has access to the eMagiz Mendix Connector module.
49 +To do this follow these steps:
39 39  
40 -Now that we have downloaded the correct eMagiz Mendix connector (the latest version that is available for the Mendix version of our project) we can open Mendix itself.
51 +* Navigate to **Project Security**
52 +* Validate that the security of your project is set to Production. If not please select the Production option
53 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--security-settings.png]]
54 +* Navigate to **User Roles**
55 +* Edit the Administrator role
56 +* Edit the Module roles
57 +* Check the box of the eMagiz Mendix Connector module and press OK
41 41  
42 -If you open your Project in Mendix you can navigate to the left-hand panel called "Project Explorer". In this panel, you see all modules (box icons) that are currently in the project.
43 -In Project Explorer, right-click and choose the option "Import module package..."
59 +The configuration before you press OK should look as follows
44 44  
45 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-install-emagiz-mendix-connector--import-module-package.png]]
61 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--security-admin-result.png]]
46 46  
47 -In the pop-up that follows select the correct eMagiz Mendix Connector version and press Open / Openen (depending on the language settings of your PC)
63 +This configuration only needs to happen **once**.
48 48  
49 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-install-emagiz-mendix-connector--import-module-package-selection.png]]
65 +=== 3.3 Configure the constants
66 +The eMagiz Mendix Connector comes with six constants that need to be configured correctly to make sure that a successful and stable connection can be established between the Mendix application and eMagiz.
50 50  
51 -As a result, Mendix will show you the following pop-up. In this pop-up you press Import and Mendix will import the eMagiz Mendix Connector for you.
68 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-constants.png]]
52 52  
53 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-install-emagiz-mendix-connector--import-module-package-add-as-new-module.png]]
70 +==== 3.3.1 eMagizCustomerPassword
54 54  
55 -In the following microlearnings, we will focus on configuring the eMagiz Mendix Connector and updating the eMagiz Mendix Connector.
72 +The first constant you need to configure is the password that connects the eMagiz Mendix Connector to the accompanying eMagiz Project.
73 +The correct password can be retrieved from eMagiz. Simply navigate to **Deploy -> On-premises -> Runtime connection settings** and copy-paste the value for the Customer Password.
74 +This is the value that you need to fill in for the eMagizCustomerPassword. The password in the below picture is removed for security reasons.
56 56  
76 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]
57 57  
78 +This configuration only needs to happen **once**.
58 58  
80 +==== 3.3.2 eMagizCustomerUsername
81 +
82 +The second constant you need to configure is the username that connects the eMagiz Mendix Connector to the accompanying eMagiz Project.
83 +The correct username can be retrieved from eMagiz. Simply navigate to **Deploy -> On-premises -> Runtime connection settings** and copy-paste the value for the Customer Username.
84 +This is the value that you need to fill in for the eMagizCustomerUsername. The username in the below picture is removed for security reasons.
85 +
86 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]
87 +
88 +This configuration only needs to happen **once**.
89 +
90 +==== 3.3.3 eMagizRuntimeEnvironment
91 +
92 +The third constant you need to configure is a dynamic configuration that depends on the environment (Test, Acceptance, or Production) of your eMagiz project you want to connect your Mendix project.
93 +When running the project locally it stands to reason that the Test environment (if available) would be the most logical choice.
94 +When you deploy your Mendix application to Acceptance or Production make sure to change the value of this constant via the option Mendix offers you for it.
95 +
96 +The correct value can either be prod, accp or test.
97 +
98 +==== 3.3.4 eMagizRuntimeName
99 +
100 +The fourth constant defines which runtime in eMagiz relates to the Mendix application.
101 +To correctly connect your Mendix application to your eMagiz project you need to fill in the technical name of the runtime that you have set up in eMagiz.
102 +
103 +To find out the technical name of this runtime simply navigate to **Deploy -> Containers**.
104 +Here you can see the technical name of all of your runtimes including the one that connects to your Mendix application.
105 +The technical name is build up as follows: <busname>.connector.<technical_name of the Mendix system in eMagiz>
106 +
107 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-container-overview.png]]
108 +
109 +If you have found your runtime name you can fill it in for the constant eMagizRuntimeName. This configuration only needs to happen **once**.
110 +
111 +==== 3.3.5 eMagizWsUrl
112 +
113 +The fifth constant you need to configure is the URL from which you can retrieve the property configuration made in eMagiz that you need to successfully connect to eMagiz and exchange data with eMagiz.
114 +The correct URL can be retrieved from eMagiz. Simply navigate to **Deploy -> On-premises -> Runtime connection settings** and copy-paste the value for the eMagiz WS URL.
115 +This is the value that you need to fill in for the eMagizWsUrl. You can find the URL in the picture below.
116 +
117 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]
118 +
119 +This configuration only needs to happen **once**.
120 +
121 +==== 3.3.6 StartupDelay
122 +
123 +The sixth and last constant that needs to be filled in is the startup delay.
124 +This constant indicates how many milliseconds the process will wait before starting up the infra flow and registering the exit queues.
125 +In case Mendix has not fully started up yet but the flows have already started up could lead to unexpected behavior and data loss.
126 +Therefore we advise a setting of 30000ms for this constant.
127 +
128 +This configuration only needs to happen **once**.
129 +
130 +=== 3.4 Configure the keystore/truststore
131 +
132 +To ensure a proper SSL connection between runtime and eMagiz JMS each runtime needs to have a Keystore and Truststore that hold the relevant certificates.
133 +
134 +For a Mendix application specifically, this has to be done by hand. You can find the correct Keystore and Truststore if you open the infra flow of the Mendix runtime in **Create**
135 +
136 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--open-connector-infra.png]]
137 +
138 +Under the Resources tab, you will find the key and Truststore. Download these and place them in the resources folder of your Mendix project.
139 +
140 +You can access this resources folder in the following manner: **Project -> Show Project Directory in Explorer -> Open the resources folder**
141 +
142 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--show-project-directory.png]]
143 +
144 +Simply make sure that the Keystore and Truststore that you have downloaded from eMagiz are placed in this folder **including the unique number prefix eMagiz has given the key* and Truststore**
145 +
146 +This configuration only needs to happen **once**.
147 +
148 +
149 +
59 59  == 4. Assignment ==
60 60  
61 -The assignment is simple this time. Just install an eMagiz Mendix Connector.
152 +The assignment is simple this time. Configure your eMagiz Mendix Connector.
62 62  This assignment can be completed with the help of an associated Mendix project linked to the (Academy) project that you have created/used in the previous assignment.
63 63  
64 64  == 5. Key takeaways ==
65 65  
66 -* The crucial part of installing an eMagiz Mendix Connector is to select the correct version that will work with your Mendix project
67 - ** To select the correct eMagiz Mendix Connector version look at the Mendix version your app is running in (8.0.0+,7.0.0+, etc.) and look at which of the versions eMagiz has released is the newest version.
68 -* The actual installation in Mendix is simply importing a module package and selecting the correct one. As easy as can be.
157 +To configure an eMagiz Mendix Connector you need the following:
69 69  
159 +* Configure the After Startup and Before Shutdown
160 +* Configure the Access rights to the eMagiz Mendix Module
161 +* Configure the constants
162 +* Configure the Keystore/Truststore
70 70  
164 +To make a connection in terms of allowing data to travel between A and B you need to fill in the correct constants and setup your Keystore and Truststore correctly.
71 71  
166 +
167 +
72 72  == 6. Suggested Additional Readings ==
73 73  
74 74  If you are interested in this topic and want more information on it please read the release notes provided by eMagiz that accompany the eMagiz Mendix Connector version you have selected.
... ... @@ -75,8 +75,7 @@
75 75  
76 76  == 7. Silent demonstration video ==
77 77  
78 -This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. Disclaimer, you don't see the pop-up appearing in Mendix but if you follow the above steps you are good to go!
174 +As most of this configuration takes place in Mendix and not in eMagiz we have chosen not to make a video on this topic.
175 +The pictures and text provided above should give you enough guidance to configure the connection between Mendix and eMagiz.
79 79  
80 -{{video attachment="novice-mendix-connectivity-install-emagiz-mendix-connector.mp4" reference="Main.Videos.Microlearning.WebHome"/}}
81 -
82 82  )))((({{toc/}}))){{/container}}{{/container}}