1

I want to list information about, start and stop the delivery of MDBs running in several servers. This page https://access.redhat.com/solutions/428023

shows how to stop and start MDB's delivery in standalone mode:

[standalone@localhost:9999 /] /deployment=MDBStopDeliveryApplication.jar/subsystem=ejb3/message-driven-bean=TestMDB:start-delivery(){"outcome" => "success"}
[standalone@localhost:9999 /] /deployment=MDBStopDeliveryApplication.jar/subsystem=ejb3/message-driven-bean=TestMDB:stop-delivery()

Can this be done in domain mode for all the servers? if so how?

[domain@ ip :9999 /] /deployment=name.ear/subsystem=ebj3/whatever
[domain@ ip :9999 /] /deployment=name.ear/subsystem=ebj3:whatever()

I can't do any operation on the subsystem=ebj3, or any of it's children. And TAB for completion is also doing nothing. The result of any operation is always:

{
    "outcome" => "failed",
    "failure-description" => "JBAS014883: No resource definition is registered for address [
    (\"deployment\" => \"name.ear\"),
    (\"subsystem\" => \"ebj3\")
]",
        "rolled-back" => true
}
4

2 回答 2

0

在域模式下,您无法全局查询或操作这些属性。您的配置存储在 aprofile中,配置文件分配给 a server-group,然后将server实例分配给组。服务器在 上运行host,它充当连接到域控制器的从属设备。可以有多个主机在不同的机器上运行,每个主机可以管理分配给不同组的服务器实例。为了实现您的目标,您需要在部署应用程序的每台服务器上执行这些命令。如果您想自动化它,您可以首先查询属于服务器组的服务器列表,然后在调用 CLI 的 bash 脚本中对其进行迭代。要查询特定服务器的此信息,只需在您的命令前加上/host=<your_host>/server=<your_server>/

于 2017-06-22T17:49:22.823 回答
0

这是 EAP 6.4 n 之前版本中的错误。它已在 EAP 6.4.5 中修复。您可以使用以下 CLI 命令来统计/停止 MDB:

/host=master/server=server-three/deployment=xxxx.jar/subsystem=ejb3/message-driven-bean=xxx:start-delivery()

于 2017-06-22T18:50:44.793 回答