[
https://issues.jboss.org/browse/AS7-2820?page=com.atlassian.jira.plugin.s...
]
Kabir Khan edited comment on AS7-2820 at 12/1/11 1:42 PM:
----------------------------------------------------------
It can only have one connector:
{code}
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:jboss:domain:jmx:1.1"
xmlns="urn:jboss:domain:jmx:1.1"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.1">
<!-- The jmx subsystem root element -->
<xs:element name="subsystem" type="subsystem"/>
<xs:complexType name="subsystem">
<xs:sequence>
<xs:element name="jmx-connector" type="jmx-connectorType"
minOccurs="0"/>
</xs:sequence>
<xs:attribute name="show-model" use="optional"
default="false"/>
</xs:complexType>
<xs:complexType name="jmx-connectorType">
<xs:attribute name="registry-binding" use="required" />
<xs:attribute name="server-binding" use="required" />
</xs:complexType>
</xs:schema>
{code}
The connector attributes are mapped onto the subsystem registry-binding and server-binding
attributes
{code}
[standalone@localhost:9999 /] /subsystem=jmx:read-resource-description
{
"outcome" => "success",
"result" => {
"description" => "The configuration of the JMX
subsystem.",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:jmx:1.0",
"attributes" => {
"show-model" => {
"description" => "Set to 'true' to include
MBeans for the model controller resources ",
"type" => BOOLEAN,
"required" => false,
"default" => false,
"access-type" => "read-only",
"storage" => "configuration"
},
"registry-binding" => {
"description" => "The name of a socket binding to which
external clients will connect.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"storage" => "configuration"
},
"server-binding" => {
"description" => "The name of a socket binding on which
which the JMX subsystem's RMI server and the RMIConnectionImpl objects it creates will
be exported.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"storage" => "configuration"
}
}
}
}
[standalone@localhost:9999 /] /subsystem=jmx:read-resource
{
"outcome" => "success",
"result" => {
"registry-binding" => undefined,
"server-binding" => undefined,
"show-model" => true
}
}
{code}
was (Author: kabirkhan):
It can only have one connector:
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:jboss:domain:jmx:1.1"
xmlns="urn:jboss:domain:jmx:1.1"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.1">
<!-- The jmx subsystem root element -->
<xs:element name="subsystem" type="subsystem"/>
<xs:complexType name="subsystem">
<xs:sequence>
<xs:element name="jmx-connector" type="jmx-connectorType"
minOccurs="0"/>
</xs:sequence>
<xs:attribute name="show-model" use="optional"
default="false"/>
</xs:complexType>
<xs:complexType name="jmx-connectorType">
<xs:attribute name="registry-binding" use="required" />
<xs:attribute name="server-binding" use="required" />
</xs:complexType>
</xs:schema>
The connector attributes are mapped onto the subsystem registry-binding and server-binding
attributes
[standalone@localhost:9999 /] /subsystem=jmx:read-resource-description
{
"outcome" => "success",
"result" => {
"description" => "The configuration of the JMX
subsystem.",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:jmx:1.0",
"attributes" => {
"show-model" => {
"description" => "Set to 'true' to include
MBeans for the model controller resources ",
"type" => BOOLEAN,
"required" => false,
"default" => false,
"access-type" => "read-only",
"storage" => "configuration"
},
"registry-binding" => {
"description" => "The name of a socket binding to which
external clients will connect.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"storage" => "configuration"
},
"server-binding" => {
"description" => "The name of a socket binding on which
which the JMX subsystem's RMI server and the RMIConnectionImpl objects it creates will
be exported.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"storage" => "configuration"
}
}
}
}
[standalone@localhost:9999 /] /subsystem=jmx:read-resource
{
"outcome" => "success",
"result" => {
"registry-binding" => undefined,
"server-binding" => undefined,
"show-model" => true
}
}
JMX subsystem model doesn't match schema
----------------------------------------
Key: AS7-2820
URL:
https://issues.jboss.org/browse/AS7-2820
Project: Application Server 7
Issue Type: Bug
Components: Domain Management, JMX
Reporter: Heiko Braun
Assignee: Kabir Khan
Fix For: 7.1.0.CR1
The xsd contains a list of connectors, which is nor represented in the DMR model.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira