I am new to WildFly and also JMX, but I'd like to deploy a WAR file to a remote WildFly domain in Java program (neither Web UI nor CLI). Codehaus Cargo seemed to support remote deployment but I could not figure out how to deploy to a WildFly domain using Cargo. Is there an example that deploys a WAR file to a remote WildFly domain in Java program?
I am using Maven to build my project so just pointers to Maven artifacts will be helpful.