[ActiveMQ] First Knowledge ActiveMQ

Source: Internet
Author: User

Introduction to the first knowledge ACTIVEMQACTIVEMQ
  • Official website: http://activemq.apache.org/
  • Latest Version: ActiveMQ 5.14.1 (2016-10-28)
  • Latest version download link: http://activemq.apache.org/download.html
  • Historical version download Link: http://archive.apache.org/dist/activemq/
  • Getting Started Guide Link: http://activemq.apache.org/getting-started.html
Install, start, stop on Windows
  1. Download the compressed package you want to use from the links given above. The file name format is "Apache-activemq-x.x.x-bin.zip", the latest version of this learning version apache-activemq-5.14.1-bin.zip.
  2. Unzip the file to a local directory: D:\apache-activemq-5.14.1.
  3. Open the CMD console window from the Start menu and the Run menu, or use the Microsoft logo key +r to open the Run window and enter the CMD console window by entering the cmd command.
  4. Enter the "cd/d D:\apache-activemq-5.14.1\bin" command to switch the directory to the local directory in step 2nd. Continue to enter "ACTIVEMQ start" to start the ACTIVEMQ. After successful startup, you can see "Apache ActiveMQ 5.14.1 (localhost, id:candy-1021-49852-1477700829921-0:1) started" in the console.
    If you are prompted with the following information, you need to install the JDK and configure the "Java_home" environment variable.

     Microsoft Windows [version 6.1 .   2009   Microsoft Corporation. All rights reserved. C:\Users\Administrator  >cd/d d:\apache-activemq-1  d:\apache -activemq-5.14 . Span style= "color: #800080;" >1  >BIN\ACTIVEMQ startwarning:java_home environment variable is not set.     "Java.exe"    -activemq-5.14 . 1 ; 
  5. ACTIVEMQ launches the built-in jetty server by default, providing an admin app for monitoring activemq. Open the browser and type "http://127.0.0.1:8161/admin/" and enter. Enter the user name and password in the Validation dialog box that pops up.
    ACTIVEMQ the default user name and password are admin.
    (1), login user and password configuration: conf/jetty-realm.properties
    (2), 8161 port configuration: conf/jetty.xml
  6. ACTIVEMQ The TCP connection port that is used by default is 61616, and the "Netstat-an|find" 61616 "command views the port information to confirm that the ACTIVEMQ started successfully.
  7. Use "CTRL + C" in the console to stop ACTIVEMQ. If ACTIVEMQ is running as a service in the background, you can also enter "Activemq stop" in the console to stop the service.
Sending messages via ACTIVEMQ
      1. Click on the "Queues" menu, enter the Queue Name and click the "Create" button. Click on the "Send to" link to send a test message.
      2. On the "Send a JMS message" page, enter the test message and click the "Send" button.
      3. Back to the "Queues" menu, see "Number of Pending Messages" and "Messages enqueued" have all become "1". "Number of consumers" is "0", indicating that a message has been sent, but not consumed.

[ActiveMQ] First Knowledge ActiveMQ

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.