We are currently migrating our JBoss App-Server to Wildfly V21. We used this code to create an initial context to a cluster that uses our own LoadBalancer.
Ol