Changes for page novice-mendix-connectivity-configure-emagiz-mendix-connector
Last modified by Erik Bakker on 2025/02/25 16:09
From version 9.1
edited by Erik Bakker
on 2022/08/23 08:21
on 2022/08/23 08:21
Change comment:
There is no comment for this version
To version 5.2
edited by Erik Bakker
on 2022/06/12 10:02
on 2022/06/12 10:02
Change comment:
Update document after refactoring.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - ConfigureaneMagizMendixConnector1 +novice-mendix-connectivity-configure-emagiz-mendix-connector - Content
-
... ... @@ -1,173 +1,110 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 -In this microlearning, we will focus on configuring an eMagiz Mendix Connector.2 +In this microlearning, we will focus on updating 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 +* Last update: January 27th, 2021 8 +* Required reading time: 7 minutes 9 + 7 7 == 1. Prerequisites == 8 8 * Basic knowledge of the eMagiz platform 9 9 * Access to a Mendix application 10 10 * Access to the Deploy phase of your eMagiz project 11 -* A connection between Mendix and eMagiz Designed and Created 12 -* Using eMagiz Mendix version 4.2.0 or higher. 13 13 14 14 == 2. Key concepts == 15 -This microlearning centers around configuring an eMagiz Mendix Connector16 +This microlearning centers around updating an eMagiz Mendix Connector 16 16 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. 17 17 18 -To configure an eMagiz Mendix Connector you need the following:19 +To update an eMagiz Mendix Connector you need the following: 19 19 20 -* Configure the After Startup and Before Shutdown 21 -* Configure the Access rights to the eMagiz Mendix Module 22 -* Configure the constants 23 -* Configure the Keystore/Truststore 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 an eMagiz Mendix Connector in it at this moment. 24 24 25 -== 3. Configure a eMagiz Mendix Connector 26 26 27 -To configure the eMagiz Mendix Connector in a Mendix app, the following steps need to be performed. 28 28 29 -== =3.1ConfiguretheAfter StartupandBeforeShutdown26 +== 3. Update an eMagiz Mendix Connector 30 30 31 -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 32 -After Startup and Before Shutdown microflow of the project itself. 28 +To update the eMagiz Mendix Connector in a Mendix app, the following steps need to be performed. 33 33 34 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--after-startup-before-shutdown-emagiz.png]] 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. 35 35 36 -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. 37 -You can verify this by navigating to **Project Settings -> Runtime** 36 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-emagiz-mendix-connector--emc-download-screen.png]] 38 38 39 - [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--after-startup-before-shutdown-project.png]]38 +=== 3.2 Importing eMagiz Mendix connector 40 40 41 - Thisconfiguration onlyneedsto happen**once**.40 +Now that we have downloaded the correct eMagiz Mendix connector (the latest version that is available for the Mendix version of our project and newer compared to the current one) we can open Mendix itself. 42 42 43 -=== 3.2 Configure the Access rights to the eMagiz Mendix Module 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..." 44 44 45 -It is recommended that only the administrator user role has access to the eMagiz Mendix Connector module. 46 -To do this follow these steps: 45 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package.png]] 47 47 48 -* Navigate to **Project Security** 49 -* Validate that the security of your project is set to Production. If not please select the Production option 50 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--security-settings.png]] 51 -* Navigate to **User Roles** 52 -* Edit the Administrator role 53 -* Edit the Module roles 54 -* Check the box of the eMagiz Mendix Connector module and press OK 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) 55 55 56 - Thefigurationbefore youpress OK should lookfollows49 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package-selection.png]] 57 57 58 - [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--security-admin-result.png]]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. 59 59 60 - Thisfigurationlyneedstohappen**once**.53 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package-replace-existing-module.png]] 61 61 62 - ===3.3Configuretheconstants55 +You may be prompted with a warning pop-up the moment you update to a newer version. Make a screenshot and press OK. 63 63 64 - TheeMagiz Mendix Connector comeswith sixconstants thatneed tobe configuredrrectlyto make sure thata successful andstablen can be established between the Mendix applicationandMagiz.57 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package-java-update-warning.png]] 65 65 66 - [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-constants.png]]59 +=== 3.3 Cleaning up the project 67 67 68 -==== 3.3.1 eMagizCustomerPassword 61 +After you have updated to a new version of the eMagiz Mendix Connector you must clean the project before you do a new commit. 62 +Otherwise, it can happen that the communication between Mendix and eMagiz will take place based on the old instead of the new version. 69 69 70 -The first constant you need to configure is the password that connects the eMagiz Mendix Connector to the accompanying eMagiz Project. 71 -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. 72 -This is the value that you need to fill in for the eMagizCustomerPassword. The password in the below picture is removed for security reasons. 64 +==== 3.3.1 Run the eMagiz Cleanup Tool 73 73 74 - [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]66 +When you navigate to **Project -> Show Project Directory in Explorer -> resources** you will see one Jar file which you can run called the emagiz-cleanup-tool. 75 75 76 - Thisfigurationlyneedsto happen**once**.68 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--emagiz-cleanup-tool.png]] 77 77 78 - ====3.3.2eMagizCustomerUsername70 +Run this cleanup tool by double-clicking on it to make sure that all ties to the old eMagiz Mendix Connector version are cut. In the pop-up that follows select the button Cleanup 79 79 80 -The second constant you need to configure is the username that connects the eMagiz Mendix Connector to the accompanying eMagiz Project. 81 -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. 82 -This is the value that you need to fill in for the eMagizCustomerUsername. The username in the below picture is removed for security reasons. 72 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--emagiz-cleanup-tool-result.png]] 83 83 84 - [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]]74 +After you have pressed Cleanup eMagiz will tell you whether or not this has succeeded. Below you see a successful result 85 85 86 - Thisfigurationlyneedstohappen**once**.76 +[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--emagiz-cleanup-tool-success.png]] 87 87 88 -==== 3.3. 3eMagizRuntimeEnvironment78 +==== 3.3.2 Cleanup Deployment Directory 89 89 90 -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. 91 -When running the project locally it stands to reason that the Test environment (if available) would be the most logical choice. 92 -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. 80 +As the pop-up states, the next step to finish up the update of your eMagiz Mendix Connector is to clean up your deployment directory. 81 +You can simply do this by navigating to **Project -> Clean Deployment Directory** and selecting that option. 93 93 94 - The correct valuecaneitherbeprod,accpor test.83 +Congratulations, you have successfully updated your eMagiz Mendix Connector to the latest available version. 95 95 96 -==== 3.3.4 eMagizRuntimeName 97 97 98 -The fourth constant defines which runtime in eMagiz relates to the Mendix application. 99 -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. 100 100 101 -To find out the technical name of this runtime simply navigate to **Deploy -> Containers**. 102 -Here you can see the technical name of all of your runtimes including the one that connects to your Mendix application. 103 -The technical name is build up as follows: <busname>.connector.<technical_name of the Mendix system in eMagiz> 104 - 105 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-container-overview.png]] 106 - 107 -If you have found your runtime name you can fill it in for the constant eMagizRuntimeName. This configuration only needs to happen **once**. 108 - 109 -==== 3.3.5 eMagizWsUrl 110 - 111 -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. 112 -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. 113 -This is the value that you need to fill in for the eMagizWsUrl. You can find the URL in the picture below. 114 - 115 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--emagiz-mendix-runtime-connection-settings.png]] 116 - 117 -This configuration only needs to happen **once**. 118 - 119 -==== 3.3.6 StartupDelay 120 - 121 -The sixth and last constant that needs to be filled in is the startup delay. 122 -This constant indicates how many milliseconds the process will wait before starting up the infra flow and registering the exit queues. 123 -In case Mendix has not fully started up yet but the flows have already started up could lead to unexpected behavior and data loss. 124 -Therefore we advise a setting of 30000ms for this constant. 125 - 126 -This configuration only needs to happen **once**. 127 - 128 -=== 3.4 Configure the keystore/truststore 129 - 130 -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. 131 - 132 -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** 133 - 134 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--open-connector-infra.png]] 135 - 136 -Under the Resources tab, you will find the key and Truststore. Download these and place them in the resources folder of your Mendix project. 137 - 138 -You can access this resources folder in the following manner: **Project -> Show Project Directory in Explorer -> Open the resources folder** 139 - 140 -[[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-configure-emagiz-mendix-connector--show-project-directory.png]] 141 - 142 -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** 143 - 144 -This configuration only needs to happen **once**. 145 - 146 146 == 4. Assignment == 147 147 148 -The assignment is simple this time. ConfigureyoureMagiz Mendix Connector.89 +The assignment is simple this time. Just update an eMagiz Mendix Connector. 149 149 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. 150 150 151 151 == 5. Key takeaways == 152 152 153 -To configure an eMagiz Mendix Connector you need the following: 94 +* The crucial part of updating an eMagiz Mendix Connector is to select the correct version that will work with your Mendix project 95 + ** 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 (that is newer compared to the current version). 96 +* The actual installation in Mendix is simply importing a module package and selecting the correct one. As easy as can be. 154 154 155 -* Configure the After Startup and Before Shutdown 156 -* Configure the Access rights to the eMagiz Mendix Module 157 -* Configure the constants 158 -* Configure the Keystore/Truststore 159 159 160 -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. 161 161 162 162 == 6. Suggested Additional Readings == 163 163 164 164 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. 165 165 166 -If you are interested in migrating towards the latest version of the eMagiz Mendix Connector please check out our [[migration paths>>doc:Main.eMagiz Support.Migration Paths.WebHome||target="blank"]]. 167 - 168 168 == 7. Silent demonstration video == 169 169 170 -As most of this configuration takes place in Mendix and not in eMagiz we have chosen not to make a video on this topic. 171 -The pictures and text provided above should give you enough guidance to configure the connection between Mendix and eMagiz. 106 +This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. Disclaimer, you only see the eMagiz part but if you follow the above steps you are good to go! 172 172 108 +{{video attachment="novice-mendix-connectivity-update-update-emagiz-mendix-connector.mp4" reference="Main.Videos.Microlearning.WebHome"/}} 109 + 173 173 )))((({{toc/}}))){{/container}}{{/container}}