Modify an address-full-policy using the CLI in JBoss EAP 6
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
How can we modify the address-full-policy for our destination(s)?
Resolution
You can modify the address-full-policy by manually configuring the xml, or by using CLI
Here is the default address-setting (in standalone/domain.xml):
<address-setting match="#">
<dead-letter-address>jms.queue.DLQ</dead-letter-address>
<expiry-address>jms.queue.ExpiryQueue</expiry-address>
<redelivery-delay>0</redelivery-delay>
<max-size-bytes>10485760</max-size-bytes>
<address-full-policy>BLOCK</address-full-policy>
<message-counter-history-day-limit>10</message-counter-history-day-limit>
</address-setting>
You can simply change the value of address-full-policy in the above xml.
To modify via CLI, here is the command to change the address-full-policy from BLOCK to PAGE:
./subsystem=messaging/hornetq-server=default/address-setting=#:write-attribute(name=address-full-policy, value=PAGE)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
