Configuring users

RabbitMQ users are global to the broker instance, but each user can have his/her own set of permissions for each individual vhost.

Different applications can be totally decoupled using independent users and vhosts.

However, the same application can benefit from the usage of user permissions within the same vhost.

We are going to see how to manage users and their permissions and how to use them in the Java example in Chapter03/Recipe02.

Getting ready

In order to run this recipe, we need to issue some rabbitmqctl configuration commands and exercise the configurations using the usual Java setup.

How to do it…

Perform the following steps to see how to manage users and their permissions as well as how to use them:

  1. Create some users with their ...

Get RabbitMQ Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.