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

Show last authors
1 {{container}}
2 {{container layoutStyle="columns"}}
3 (((
4 In this microlearning, we'll cover how to configure the eMagiz Mendix Connector for your Mendix application. The eMagiz Mendix Connector is a module that facilitates seamless integration between Mendix and eMagiz projects. We’ll walk you through the essential configuration steps, including setting up startup and shutdown processes, configuring access rights, defining key constants, and properly setting up the Keystore and Truststore. By the end, you'll be ready to ensure a stable and secure connection between your Mendix application and eMagiz.
5
6 Should you have any questions, please contact academy@emagiz.com.
7
8 == 1. Prerequisites ==
9
10 * Basic knowledge of the eMagiz platform
11 * Access to a Mendix application
12 * Access to the Deploy phase of your eMagiz project
13 * A connection between Mendix and eMagiz Designed and Created
14 * Using eMagiz Mendix version 4.2.0 or higher.
15
16 == 2. Key concepts ==
17
18 This microlearning centers around configuring an eMagiz Mendix Connector
19 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.
20
21 To configure an eMagiz Mendix Connector you need the following:
22
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
27
28 == 3. Configure a eMagiz Mendix Connector ==
29
30 To configure the eMagiz Mendix Connector in a Mendix app, the following steps need to be performed.
31
32 === 3.1 Configure the After Startup and Before Shutdown ===
33
34 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
35 After Startup and Before Shutdown microflow of the project itself.
36
37 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--after-startup-before-shutdown-emagiz.png]]
38
39 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.
40 You can verify this by navigating to **Project Settings -> Runtime**
41
42 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--after-startup-before-shutdown-project.png]]
43
44 This configuration only needs to happen **once**.
45
46 === 3.2 Configure the Access rights to the eMagiz Mendix Module ===
47
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:
50
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
58
59 The configuration before you press OK should look as follows
60
61 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--security-admin-result.png]]
62
63 This configuration only needs to happen **once**.
64
65 === 3.3 Configure the constants ===
66
67 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.
68
69 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-constants.png]]
70
71 ==== 3.3.1 eMagizCustomerPassword ====
72
73 The first constant you need to configure is the password that connects the eMagiz Mendix Connector to the accompanying eMagiz Project.
74 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.
75 This is the value that you need to fill in for the eMagizCustomerPassword. The password in the below picture is removed for security reasons.
76
77 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]
78
79 This configuration only needs to happen **once**.
80
81 ==== 3.3.2 eMagizCustomerUsername ====
82
83 The second constant you need to configure is the username that connects the eMagiz Mendix Connector to the accompanying eMagiz Project.
84 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.
85 This is the value that you need to fill in for the eMagizCustomerUsername. The username in the below picture is removed for security reasons.
86
87 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]
88
89 This configuration only needs to happen **once**.
90
91 ==== 3.3.3 eMagizRuntimeEnvironment ====
92
93 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.
94 When running the project locally it stands to reason that the Test environment (if available) would be the most logical choice.
95 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.
96
97 The correct value can either be prod, accp or test.
98
99 ==== 3.3.4 eMagizRuntimeName ====
100
101 The fourth constant defines which runtime in eMagiz relates to the Mendix application.
102 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.
103
104 To find out the technical name of this runtime simply navigate to **Deploy -> Containers**.
105 Here you can see the technical name of all of your runtimes including the one that connects to your Mendix application.
106 The technical name is build up as follows: <busname>.connector.<technical_name of the Mendix system in eMagiz>
107
108 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-container-overview.png]]
109
110 If you have found your runtime name you can fill it in for the constant eMagizRuntimeName. This configuration only needs to happen **once**.
111
112 ==== 3.3.5 eMagizWsUrl ====
113
114 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.
115 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.
116 This is the value that you need to fill in for the eMagizWsUrl. You can find the URL in the picture below.
117
118 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]
119
120 This configuration only needs to happen **once**.
121
122 ==== 3.3.6 StartupDelay ====
123
124 The sixth and last constant that needs to be filled in is the startup delay.
125 This constant indicates how many milliseconds the process will wait before starting up the infra flow and registering the exit queues.
126 In case Mendix has not fully started up yet but the flows have already started up could lead to unexpected behavior and data loss.
127 Therefore we advise a setting of 30000ms for this constant.
128
129 This configuration only needs to happen **once**.
130
131 === 3.4 Configure the keystore/truststore ===
132
133 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.
134
135 For a Mendix application specifically, this has to be done by hand. You can find the correct Keystore and Truststore if you navigate to **Create -> Resources**. In here you can search for "{technicalnamemodel}-client" in the field "Name".
136
137 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--find-resources.png]]
138
139 In this overview, you will find the key and Truststore. Download these and place them in the resources folder of your Mendix project.
140
141 You can access this resources folder in the following manner for Mendix Projects running below version 9.18.0: **Project -> Show Project Directory in Explorer -> Open the resources folder**
142
143 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--show-project-directory.png]]
144
145 For Mendix projects running version 9.18.0 or higher please go to: **App -> Show App Directory In Explorer**.
146
147 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--show-app-directory.png]]
148
149 Simply make sure that the Keystore and Truststore that you have downloaded from eMagiz are placed in this folder.
150
151 {{warning}}
152 Don't forget to include the unique number prefix eMagiz has given the key- and truststore. Otherwise the connection cannot be established.
153 {{/warning}}
154
155 This configuration only needs to happen **once**.
156
157 == 4. Key takeaways ==
158
159 To configure an eMagiz Mendix Connector you need the following:
160
161 * Configure the After Startup and Before Shutdown
162 * Configure the Access rights to the eMagiz Mendix Module
163 * Configure the constants
164 * Configure the Keystore/Truststore
165
166 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.
167
168 == 5. Suggested Additional Readings ==
169
170 * [[Novice (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Novice.WebHome||target="blank"]]
171 ** [[Mendix Connectivity (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.Mendix Connectivity.WebHome||target="blank"]]
172 *** [[What is an eMagiz Mendix Connector (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.Mendix Connectivity.novice-mendix-connectivity-what-is-an-emagiz-mendix-connector.WebHome||target="blank"]]
173 *** [[Install an eMagiz Mendix Connector (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.Mendix Connectivity.novice-mendix-connectivity-install-emagiz-mendix-connector.WebHome||target="blank"]]
174 *** [[Update an eMagiz Mendix Connector (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Legacy Functionality.novice-mendix-connectivity-update-emagiz-mendix-connector.WebHome||target="blank"]]
175 * [[Support (Menu)>>doc:Main.eMagiz Support.WebHome||target="blank"]]
176 ** [[Migration Paths (Navigation)>>doc:Main.eMagiz Support.Migration Paths.WebHome||target="blank"]]
177 *** [[eMagiz Mendix Connector 3.0.0 -~> 5.0.0 (Explanation)>>doc:Main.eMagiz Support.Migration Paths.migration-path-emagiz-mendix-connector-300-to-500||target="blank"]]
178 *** [[eMagiz Mendix Connector 4.2.0 -~> 5.0.0 (Explanation)>>doc:Main.eMagiz Support.Migration Paths.migration-path-emagiz-mendix-connector-420-to-500||target="blank"]]
179 * [[Mendix (Search Result)>>url:https://docs.emagiz.com/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_space_facet=0%2FMain.&f_type=DOCUMENT&f_locale=en&f_locale=&f_locale=en&text=%22mendix%22||target="blank"]]
180 )))
181
182 (((
183 {{toc/}}
184 )))
185 {{/container}}
186 {{/container}}