I followed this documentation:
https://www.mastertheboss.com/jbossas/jboss-as-7/jboss-as-7-domain-configuration/
But after all I used to get this error:
wildfly domain mode remote slave WFLYHC0001: Could not connect to remote domain controller JBOSS-LOCAL-USER, DIGEST-MD5
This documentation doesn't remarked domain-controller config, just legacy mode, so I thougt I can use default host-slave.xml!
I understood this a little bit. The main problem was this snippet from host-slave.xml:
We must bind it with authentication-context:
But there can be another option you can connect so too:
The plain remote communicate on 9999, but the discovery on 9990!