You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.adoc
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -451,9 +451,10 @@ And again, keep the container running, we're going to look into the last deploym
451
451
The build in Web-Console also relies on the same management APIs that we've already been using via JBoss Developer Tools and the CLI. It does provide a nice web-based way to administrate your instance and if you've already exposed the container ports, you can simply access it via the URL: http://dockerhost:9990 in your webbrowser.
452
452
This will point you to the management interface
453
453
454
-
.Start Server
454
+
.The Web Console
455
455
image::images/console1.png[]
456
456
457
+
457
458
If you're prompted for username and password enter "admin" as username and "docker#admin" as password. Now navigate through it and execute the following steps:
458
459
459
460
. Go to the "Deployments tab".
@@ -462,8 +463,36 @@ If you're prompted for username and password enter "admin" as username and "dock
462
463
. On the "Step 2/2" screen, click "Next" again.
463
464
464
465
Now you've been successfully deploying the Ticket Monster application in three different ways. Time to look at some more features, that Docker can provide to Java developers.
466
+
Make sure to stop the WildFly instance after this last option.
467
+
468
+
Stop wildfly when you're done.
469
+
[source, text]
470
+
----
471
+
docker stop wildfly
472
+
----
465
473
466
474
## Ticket-Monster Docker Cluster
475
+
Another frequent requirement for Java EE based applications is clustering. While setup and test can be complicated on developer machines, this is where Docker can play to it's full potential. With the help of images and automatic port mapping, we're ready to test Ticket-Monster on a couple of WildFly instances and add and remove them randomly.
476
+
Here is the rough architecture, of what we're going to do:
477
+
478
+
.Standalone Cluster with WildFly and mod_cluster
479
+
image::images/wildfly_cluster1.png[]
480
+
481
+
482
+
We're going to start with the Apache HTTPD server.
483
+
[source, text]
484
+
----
485
+
docker run -d --name modcluster -p 80:80 <INSTRUCTOR_IP>:5000/mod_cluster
486
+
----
487
+
488
+
To see if everything worked out the way we wanted it, open http://dockerhost/mod_cluster_manager with your browser. This should show the empty console:
0 commit comments