I have a jboss cluster set up in domain mode.
I want to use the jboss management rest api to fetch information about the hosts from the
domain controller:
eg:
URL :
http://myhost:9990/management (
http://eclwsd004:9990/management)
Content Type: application/json
Content :
{"operation":"read-attribute","address":[{"host":"*myhost09*"},{"server":"+server-node-A+"}],"name":"server-state"}
===================================
I get back :
Status : 500 Internal Server Error
Message:
| {"outcome" : "failed", "result" : null,
"failure-description" : "JBAS014883: No resource definition is registered
for address [\n | (\"host\" => \"*myhost09*\"),\n |
(\"server\" => \"+server-node-A+\")\n]",
"rolled-back" : true} |
===================================
where in host.xml on the host machine reads :
<host name="*myhost09*" xmlns="urn:jboss:domain:1.4">
....
<servers>
<server name="+server-node-A+" group="my-core"
auto-start="false">
<jvm name="clear-default-config"
debug-enabled="false">
<heap size="512m" max-size="1024m"/>
<jvm-options>
<option value="-Djgroups.bind_addr=172.16.120.20"/>
</jvm-options>
</jvm>
<socket-bindings socket-binding-group="ha-sockets"
port-offset="0"/>
</server>
</servers>
====================================
So I cant understand what am I missing here. Could anyone help here?
Posted by forums
Original post:
https://community.jboss.org/message/861003#861003