Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Testing the UDP protocol with the JGroups tool


Often times, you need to validate and/or certify a configuration, and in case of issues regarding UDP clustering, the first thing to check is if the UDP is working properly.

In this recipe, you will learn how to check if the UDP is working, testing it with a graphical tool and using java applications (thus without UI—which is the case of enterprise environment).

How to do it...

First of all, let's check if we have the JGroups library in our WildFly installation folder.

Open your command-line tool and execute the following command:

$ find . -name "jgroups*.jar"
./modules/system/layers/base/org/jgroups/main/jgroups-3.6.2.Final.jar

Great! Now we can test it.

Graphical test

Open your command-line tool.

  1. Now execute the following command:

    $ java -cp modules/system/layers/base/org/jgroups/main/jgroups-3.6.2.Final.jar org.jgroups.demos.Draw
    ...
    -------------------------------------------------------------------
    GMS: address=0-44172, cluster=draw-cluster, physical...