Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
8.3.4. Reloading the ACL
You can reload the ACL without restarting the broker using a QMF method, either using
qpid-tool
or from program code.
Reload the ACL using qpid-tool
You need to use
qpid-tool
with a account with sufficient privileges to reload the ACL.
- Start
qpid-tool
:qpid-tool admin/mysecretpassword@mybroker:5672
$ qpid-tool admin/mysecretpassword@mybroker:5672 Management Tool for QPID qpid:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Check the ACL list to obtain the object ID:
qpid: list acl Object Summary: ID Created Destroyed Index ================================= 103 12:57:41 - 116
qpid: list acl Object Summary: ID Created Destroyed Index ================================= 103 12:57:41 - 116
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, you can examine the ACL:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To reload the ACL, call the reload method of the ACL object:
qpid: call 103 reloadACLFile qpid: OK (0) - {}
qpid: call 103 reloadACLFile qpid: OK (0) - {}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Reload ACL from program code
The broker ACL can be reloaded at runtime by calling a QMF method.
The following code calls the appropriate QMF method to reload the ACL:
- Python
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note that the server must be started with ACL enabled for the reload operation to succeed.