Chapter 1 What is activeMQ and an introduction to basic concepts

                                                                       Introduction to ActiveMQ

 

1.1 Features of activeMq

  • activeMq inherits from the specification standard of JMS1.1.
  • lConnectivity-activeMq provides a wide range of connectivity conditions, including support for multiple protocols, such as: HTTP/S, IP multicast, SSL, STOMP, TCP, UDP, XMPP, etc.
  • Persistence and Security - activeMq provides multiple persistence methods
  • Integrate with application server - tomcat, weblogic, jboss
  • Client API - supports java, php, c++, Perl, etc. (the server side is running in JVM)
  • cluster  

1.2 Install and download MQ

  1.   jdk version 1.5 or above, must have j2se environment
  2. http://activemq.apache.org/download.html Official download address of ApacheMq
  3. Download and get the apache-activemq-5.13.3-bin.zip package, extract the following directories, the more useful directories will be introduced below
                   
  • activemq-all-5.4.1.jar ------java calls all the interfaces and classes of activeMq in it
  • bin -- contains binary/executable files, startup scripts are also in this directory
  • conf --- contains some configuration files
  • data --- store some log files and Message persistent data
  • example --- some small examples to get started quickly
  • lib---jar package required for activeMq runtime

1.3 Start Mq

    Start under windows Click the activemq.bat file of win64/win32 in the bin directory to start

    http://localhost:8161/admin/ You can enter the mq terminal console through this address

1.4 Definition of JMS terms

  •    JMS client --- an application that uses pure java to send and receive messages
  • JMS producer --- message producer
  • JMS consumer --- message consumer
  • JMS message --- the basic unit used to be attacked and received (including text, binary data)
  • JMS domains —  two flavors of messaging, including point-to-point and publish/subscribe
  • Connection factory ---- created by the client to connect to the JMS provider
  • JMS provider --- Concrete implementation of JMS interface
  • Destination -- the destination to which the message is sent

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326397661&siteId=291194637