Scott Stark [
http://community.jboss.org/people/starksm64] created the document:
"Adding a new Extension/Subsystem via the CLI"
To view the document, visit:
http://community.jboss.org/docs/DOC-17294
--------------------------------------------------------------
A common configuration change to the AS7 server is the addition of a subsystem. This
requires adding the subsystem extension and the subsystem. This can be done with two CLI
commands. Consider the JMX subsystem elements found in the standalone.xml:
<extension module="org.jboss.as.jmx"/>
<subsystems>
...
<subsystem xmlns="urn:jboss:domain:jmx:1.1"
show-model="true">
<jmx-connector server-binding="jmx-connector-server"
registry-binding="jmx-connector-registry"/>
</subsystem>
...
<socket-binding-group name="standard-sockets"
default-interface="public">
...
<socket-binding name="jmx-connector-registry" port="1090"
interface="management"/>
<socket-binding name="jmx-connector-server" port="1091"
interface="management"/>
These can be added via the following two CLI commands:
[standalone@localhost:9999 /] /extension=org.jboss.as.jmx:add
{"outcome" => "success"}
[standalone@localhost:9999 /] /:composite(steps=[{"operation" =>
"add","address" => [("subsystem" => "jmx")],
"show-model" => true}, {"operation" =>
"add-connector", "address" => [("subsystem" =>
"jmx")], "server-binding" => "jmx-connector-server",
"registry-binding" => "jmx-connector-registry"},
{"operation" => "add", "address" =>
[("socket-binding-group" => "standard-sockets"),
("socket-binding" => "jmx-connector-registry")], "port"
=> 1090, "interface" => "management"}, {"operation"
=> "add", "address" => [("socket-binding-group" =>
"standard-sockets"), ("socket-binding" =>
"jmx-connector-server")], "port" => 1091, "interface"
=> "management"}])
{
"outcome" => "success",
"result" => {
"step-1" => {"outcome" => "success"},
"step-2" => {"outcome" => "success"},
"step-3" => {"outcome" => "success"},
"step-4" => {"outcome" => "success"}
}
}
--------------------------------------------------------------
Comment by going to Community
[
http://community.jboss.org/docs/DOC-17294]
Create a new document in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=102&am...]