Java Reference
In-Depth Information
/subsystem=web/connector=http/
:read-attribute(name=enabled)
{
"outcome" => "success",
"result" => true
}
Note
Apart from the operations on a specific resource, you can also perform a set of
commands, which are available on every path of your AS 7 subsystem, such as
the cd or ls commands. These commands are pretty much equivalent to their
Unix shell counterparts, and allow navigation through the AS 7 subsystems. Oth-
er important additions are the deploy and undeploy commands, which as you
might guess, allow you to manage the deployment of applications. These key
commands are discussed in the Deploying applications using the CLI section.
The CLI is not however just about querying attributes from the JBoss AS 7 subsys-
tems; you can also set attributes or create resources. For example, if you were to set
the HTTP port of the HTTP connector, you have to use the corresponding write-
attribute on HTTP's socket binding interface, shown as follows:
/socket-binding-group=standard-sockets/
socket-binding=http/
:write-attribute(name=port,value=8080)
{
"outcome" => "success","response-headers"
=> {
"operation-requires-reload" =>
true,"process-state" => "reload-required"}
}
Apart from the operations that we have seen so far, (which can be performed on
every resource of your subsystems), there can be special operations that can be
performed exclusively on one resource. For example, within the naming subsystem,
Search WWH ::




Custom Search