Skip to content

Instantly share code, notes, and snippets.

@ddossot
Created July 6, 2010 01:06
Show Gist options
  • Select an option

  • Save ddossot/464878 to your computer and use it in GitHub Desktop.

Select an option

Save ddossot/464878 to your computer and use it in GitHub Desktop.
<service name="PermissionsSetterService">
<inbound>
<vm:inbound-endpoint path="rabbitmq.permissions.set"
synchronous="true" />
<selective-consumer-router>
<regex-filter pattern="ok" />
</selective-consumer-router>
<forwarding-catch-all-strategy>
<vm:outbound-endpoint path="rabbitmq.user.creation.failures"
synchronous="true" />
</forwarding-catch-all-strategy>
</inbound>
<outbound>
<pass-through-router>
<erlang:outbound-endpoint node="rabbit@${host.name}"
moduleFunction="rabbit_access_control:set_permissions"
invocationType="RPC"
synchronous="true">
<transformers>
<expression-transformer>
<return-argument expression="[userDetails.username.bytes,userDetails.vhost.bytes,userDetails.configure.bytes,userDetails.write.bytes,userDetails.read.bytes]"
evaluator="groovy" />
</expression-transformer>
</transformers>
</erlang:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment