Messaging: Reporting

XQuery code example to demonstrate how to list all 'receivers'.

Warning! For this function the user must be 'dba' or he must be in the 'jms' group.
(: 
 : Example: show information about all receivers
 :)
xquery version "3.0";

import module namespace jms="http://exist-db.org/xquery/jms" 
                        at "java:org.exist.jms.xquery.JmsModule";
                        
for $id in jms:list()
return
    jms:report($id)