See too many examples on the Internet, follow the steps, you can implement a simple message, receive messages. Generally not set any conditions, if you want to set up their own message channel, or to set something!
http://localhost:15672 is the server graphical interface of RABBITMQ, first log in with Guest account
Switch to admin big tab, then add user, fill in your own information, just username and password
In the upper right corner there is virtual host, which creates a new virtual host, just name
Created successfully, you can see the virtual host you created in the list
To edit, click Virtual name to add a user to the created virtual host under the Permissions project.
Once added, you can see that the user list has a column of properties can access virtual hosts, which has just created virtual hos.
A user can add more than one virtual host, and a virtual host can have multiple queues. Here, the basic settings on the RABBITMQ server are OK.
When you connect RABBITMQ server in your code, both the receive side and the sender need to set the corresponding parameters for the ConnectionFactory object, which requires the virtual host,user,password that you just created in RABBITMQ server.
At this point, you can send and receive messages using the channel you created. You can copy more than a few receive and send side, test the different virtual host, different channels to send messages. When testing, you can click on the RABBITMQ server graphical interface Overview,connections,channels,exchange,queue can view the current action corresponding state.
RABBITMQ Simple Usage Supplement