standalone-full.xml
中有一个XML元素:
<subsystem xmlns="urn:jboss:domain:transactions:2.0">
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
</subsystem>
如何将属性
node-attribute="MyNode"
添加到core-environment
XML元素?结果应如下所示:<subsystem xmlns="urn:jboss:domain:transactions:2.0">
<core-environment node-identifier="MyNode">
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
</subsystem>
最佳答案
/subsystem=transactions:write-attribute(name=node-identifier,value=MyNode)
关于java - 如何使用jboss-cli向事务子系统添加属性“节点标识符”?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23916341/