July 2015
Intermediate to advanced
604 pages
12h 13m
English
In this recipe, you will learn how to get the JVM WildFly is running with by invoking a command to the CLI.
Remember I'm running WildFly remotely, bound to 192.168.59.103 as IP. WildFly is already up and running.
$ cd $WILDFLY_HOME
$ ./bin/jboss-cli.sh -c --controller=192.168.59.103:9990 --user=wildfly --password=cookbook.2015 --command="/core-service=platform-mbean/type=runtime:read-attribute(name=spec-version)"
{
"outcome" => "success",
"result" => "1.8"
}awk command in the output (you can use whichever tool you are comfortable with), as follows:$ ./bin/jboss-cli.sh ...
Read now
Unlock full access