RABBITMQ Simple Usage Supplement

Source: Internet
Author: User
Tags rabbitmq

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.