Version 6.1 by Erik Bakker on 2022/06/12 10:03

Hide last authors
Erik Bakker 6.1 1 {{container}}
2 {{container layoutStyle="columns"}}(((
Erik Bakker 4.1 3 In this microlearning, we will focus on updating an eMagiz Mendix Connector.
Erik Bakker 2.1 4 With the help of this Mendix module created by the eMagiz team, you can easily connect between Mendix and eMagiz for data integration.
Erik Bakker 1.1 5
6 Should you have any questions, please contact academy@emagiz.com.
7
Erik Bakker 2.1 8 * Last update: January 27th, 2021
Erik Bakker 4.1 9 * Required reading time: 7 minutes
Erik Bakker 1.1 10
11 == 1. Prerequisites ==
12 * Basic knowledge of the eMagiz platform
13 * Access to a Mendix application
14 * Access to the Deploy phase of your eMagiz project
15
16 == 2. Key concepts ==
Erik Bakker 4.1 17 This microlearning centers around updating an eMagiz Mendix Connector
Erik Bakker 1.1 18 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.
19
Erik Bakker 4.1 20 To update an eMagiz Mendix Connector you need the following:
Erik Bakker 1.1 21
Erik Bakker 2.1 22 * The Mendix Module called the eMagiz Mendix Connector (available in eMagiz under Deploy of your project)
Erik Bakker 4.1 23 * Access to a Mendix project which has an eMagiz Mendix Connector in it at this moment.
Erik Bakker 1.1 24
25
26
Erik Bakker 4.1 27 == 3. Update an eMagiz Mendix Connector
Erik Bakker 1.1 28
Erik Bakker 4.1 29 To update the eMagiz Mendix Connector in a Mendix app, the following steps need to be performed.
Erik Bakker 1.1 30
Erik Bakker 2.1 31 === 3.1 Download the eMagiz Mendix connector
32 * The eMagiz Mendix connector can be downloaded via eMagiz. Log in and then go to one of the busses you have access to.
33 * Go to **Deploy -> On Premises -> Runtime Downloads** the eMagiz Mendix connector can be downloaded.
34 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.
35 If you do not do this then the connector will **not** work.
Erik Bakker 1.1 36
Erik Bakker 5.1 37 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-emagiz-mendix-connector--emc-download-screen.png]]
38
Erik Bakker 2.1 39 === 3.2 Importing eMagiz Mendix connector
Erik Bakker 5.1 40
Erik Bakker 4.1 41 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.
Erik Bakker 3.1 42
Erik Bakker 2.1 43 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.
44 In Project Explorer, right-click and choose the option "Import module package..."
Erik Bakker 1.1 45
Erik Bakker 4.1 46 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package.png]]
Erik Bakker 1.1 47
Erik Bakker 2.1 48 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)
Erik Bakker 1.1 49
Erik Bakker 4.1 50 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package-selection.png]]
Erik Bakker 1.1 51
Erik Bakker 2.1 52 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.
53
Erik Bakker 4.1 54 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package-replace-existing-module.png]]
Erik Bakker 2.1 55
Erik Bakker 4.1 56 You may be prompted with a warning pop-up the moment you update to a newer version. Make a screenshot and press OK.
Erik Bakker 2.1 57
Erik Bakker 4.1 58 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--import-module-package-java-update-warning.png]]
Erik Bakker 2.1 59
Erik Bakker 4.1 60 === 3.3 Cleaning up the project
Erik Bakker 2.1 61
Erik Bakker 4.1 62 After you have updated to a new version of the eMagiz Mendix Connector you must clean the project before you do a new commit.
63 Otherwise, it can happen that the communication between Mendix and eMagiz will take place based on the old instead of the new version.
64
65 ==== 3.3.1 Run the eMagiz Cleanup Tool
66
67 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.
68
69 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--emagiz-cleanup-tool.png]]
70
71 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
72
73 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--emagiz-cleanup-tool-result.png]]
74
75 After you have pressed Cleanup eMagiz will tell you whether or not this has succeeded. Below you see a successful result
76
77 [[image:Main.Images.Microlearning.WebHome@novice-mendix-connectivity-update-update-emagiz-mendix-connector--emagiz-cleanup-tool-success.png]]
78
79 ==== 3.3.2 Cleanup Deployment Directory
80
81 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.
82 You can simply do this by navigating to **Project -> Clean Deployment Directory** and selecting that option.
83
84 Congratulations, you have successfully updated your eMagiz Mendix Connector to the latest available version.
85
86
87
Erik Bakker 1.1 88 == 4. Assignment ==
89
Erik Bakker 4.1 90 The assignment is simple this time. Just update an eMagiz Mendix Connector.
Erik Bakker 2.1 91 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.
Erik Bakker 1.1 92
93 == 5. Key takeaways ==
94
Erik Bakker 4.1 95 * The crucial part of updating an eMagiz Mendix Connector is to select the correct version that will work with your Mendix project
Erik Bakker 6.1 96 ** 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).
Erik Bakker 2.1 97 * The actual installation in Mendix is simply importing a module package and selecting the correct one. As easy as can be.
Erik Bakker 1.1 98
99
100
101 == 6. Suggested Additional Readings ==
102
103 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.
104
105 == 7. Silent demonstration video ==
106
Erik Bakker 4.1 107 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!
Erik Bakker 1.1 108
Erik Bakker 4.1 109 {{video attachment="novice-mendix-connectivity-update-update-emagiz-mendix-connector.mp4" reference="Main.Videos.Microlearning.WebHome"/}}
Erik Bakker 2.1 110
Erik Bakker 1.1 111 )))((({{toc/}}))){{/container}}{{/container}}