fork(2) download
  1. #!/bin/bash
  2. sed 's/broker/broker\n \
  3. <plugins> \
  4. <jaasAuthenticationPlugin configuration=\"activemq\" \/> \
  5. <authorizationPlugin> \
  6. <map> \
  7. <authorizationMap> \
  8. <authorizationEntries> \
  9. <authorizationEntry topic=> read="admins" write="admins" admin="admins" \/> \
  10. <authorizationEntry queue=> read="admins" write="admins" admin="admins" \/> \
  11. <\/authorizationEntries> \
  12. <\/authorizationMap> \
  13. <\/map> \
  14. <\/authorizationPlugin> \
  15. <\/plugins>/'
Success #stdin #stdout 0.05s 5264KB
stdin
broker
===
abc-broker
stdout
broker
 
    <plugins> 
        <jaasAuthenticationPlugin configuration="activemq" /> 
        <authorizationPlugin> 
            <map> 
                <authorizationMap> 
                    <authorizationEntries> 
                        <authorizationEntry topic=> read="admins" write="admins" admin="admins" /> 
                        <authorizationEntry queue=> read="admins" write="admins" admin="admins" /> 
                    </authorizationEntries> 
                </authorizationMap> 
            </map> 
        </authorizationPlugin> 
    </plugins>
===
abc-broker
 
    <plugins> 
        <jaasAuthenticationPlugin configuration="activemq" /> 
        <authorizationPlugin> 
            <map> 
                <authorizationMap> 
                    <authorizationEntries> 
                        <authorizationEntry topic=> read="admins" write="admins" admin="admins" /> 
                        <authorizationEntry queue=> read="admins" write="admins" admin="admins" /> 
                    </authorizationEntries> 
                </authorizationMap> 
            </map> 
        </authorizationPlugin> 
    </plugins>