-
Java 11
-
Maven 3.6+ (tested with 3.6.3)
-
ActiveMQ Artemis 2.x (tested with 2.17.0)
-
midPoint 4.3.1
-
midPoint Studio 4.3 (recommended)
Note
|
This assumes Windows installation. The setup on Linux is similar. |
-
Install ActiveMQ Artemis in selected directory, e.g.
d:\apache-artemis-2.17.0
. Let’s call this directory<ARTEMIS-INSTALLATION-DIR>
. -
Create empty directory for the broker, e.g.
d:\tmp\broker
. Let’s call this directory<BROKER-DIR>
. -
Go to the
<ARTEMIS-INSTALLATION-DIR>\bin
directory and execute the following command:artemis.cmd create <BROKER-DIR> --user admin --password admin123 --require-login
-
Start ActiveMQ broker by executing
<BROKER-DIR>\bin\artemis run
-
Check that it is running by opening the console at http://localhost:8161/console.
-
Install midPoint 4.3.1 in a selected directory, e.g.
d:\tmp\midpoint-4.3.1
. Let’s call this directory<MIDPOINT-INSTALLATION-DIR>
. -
Start midPoint by going into
<MIDPOINT-INSTALLATION-DIR>
directory and running the commandbin\start
-
Check that midPoint is running by opening the GUI at http://localhost:8080/midpoint.
-
Stop Artemis broker e.g. by hitting Ctrl-C in its console window.
-
Add the following to the
<BROKER-DIR>/etc/broker.xml
file under<addresses>
element:<address name="TestQueue"> <anycast> <queue name="TestQueue"/> </anycast> </address> <address name="DormitoryRequestsQueue"> <anycast> <queue name="DormitoryRequestsQueue"/> </anycast> </address>
-
Start the broker again.
-
Verify that the
TestQueue
andDormitoryRequestsQueue
are visible in the Artemis console.
-
Unpack this repository to a directory e.g.
d:\tmp\webinar-async-provisioning-2021-05
. Let’s call this directory<WEBINAR-DIR>
:git clone https://github.com/mederly/webinar-async-provisioning-2021-05
-
Build the code.
mvn clean install
-
Run the client. (A GUI window should appear.)
mvn exec:java
-
Copy
<WEBINAR-DIR>/target/webinar-async-provisioning-2021-05-1.0-SNAPSHOT-jndi.jar
to<MIDPOINT-INSTALLATION-DIR>/var/lib
directory. (Beware! Not into<MIDPOINT-INSTALLATION-DIR>/lib
one.) -
Restart midPoint.
-
Edit CSV file path in
<WEBINAR-DIR>/src/main/resources/midpoint/resources/resource-students.xml
to match the actual CSV file placement. -
Upload files in
<WEBINAR-DIR>/src/main/resources/midpoint
(except fortasks
directory) into running midPoint. -
Test all three resources:
-
students (CSV)
-
Dormitory Test (async)
-
Dormitory (async)
-
-
Import the
Import Students (CSV)
task (import-students.xml
file) into midPoint and check that it finishes and 12 users are successfully created in midPoint. -
Try to assign/unassign some users to the
Accommodation
org and verify that the "accounts" are created in the sample Dormitory app. -
Unassign all the users from
Accommodation
org. -
Start the
Live Sync Students (CSV)
task and try to change the content of thestudents.csv
file. Observe the related changes in the Dormitory app.