First, Pom.xml and mq.propertiesSpring provides support for JMS and needs to add spring-supported JMS packages, as follows:Add the ACTIVEMQ pool package as follows:Add the Xbean label configuration as follows:Mq.properties:activemq.brokerurl=tcp://192.168.91.8:61616activemq.username=liuyactivemq.password= 123456activemq.maxconnections=100activemq.destination.name=spring-queueactivemq.destinationtopic.name= Spring-topicSecond, mq.xml ConfigurationThird
follows the specific implementations and products of the AMQP protocol.
Usage Scenarios:
In the project, some operations without immediate return and time-consuming are extracted and processed asynchronously, which greatly saves the request response time of the server and improves the throughput of the system.
JMS and MQ relationships:
JMS is a technical specification for providing a messaging service that develops all the data structures and intera
higher latency.
Medium:
Blue: nanomsg
RED: ZeroMq
In general, our assumptions prove correct because more messages are sent to the system, and the latency of each message increases. Interestingly, when we were close to 1000000 messages, the latency slowed down by 500000 points .. Another interesting observation is the initial peak of message latency between 1000 and 5000, which is more significant than nanomsg. This is difficult to determine the causal relationship,
First, MQ1.1 About Message Queuing MQMessage Queuing (MQ) is an application-to-application communication method. Applications communicate by writing and retrieving data (messages) for applications that enter and leave the queue, without requiring a private connection to link them. Message passing refers to the process of communicating between programs by sending data in a message, rather than by directly invoking each other, and directly invoking techniques such as remote procedure calls. Queuin
Objective:
Activemq and RabbitMq and Kafka in the previous projects have been used in succession, of course, for the three did not have a specific comparison, the following excerpt some online about these three comparisons, I have seen after I feel
It is possible to have a clearer feedback of these three specific cases that have been used in the scene, with the following specific comparisons:
1) TPS Comparison:Kafka highest, RabbitMq second,
the TCP connection .... More transport options can be found on the websiteBecause ACTIVEMQ supports a number of different connection modes, it is possible to see the relevant configuration in its configuration file. The configuration file is Conf/activemq.xml. Here is the configuration file of the activemq I used:As you can see, the above configuration file indicates that:
What is ACTIVEMQ?ACTIVEMQ is the most popular, powerful, open source messaging bus that Apache has produced. Support for multiple language clients (java,c,c++,c#,python,ruby,perl,php),Supports multiple protocols (Openwire,stomp REST,WS NOTIFICATION,XMPP,AMQP).Ii. Installation of JDKHttp://www.oracle.com/technetwork/java/javase/downloads/index.htmlsuch as: jdk-8u1
messages to multiple subscribers
Provided by:
The open source provider includes:
1.Apache ActiveMQ
The HORNETQ developed by the 2.JBoss community
3.Joram
4.Coridan of Mantaray
OPENJMS of the 5.The OPENJMS Group
Ii. introduction of ACTIVEMQ
ACTIVEMQ is the most popular and powerful open source message bus produced by Apache.
JMS is a technical specification for providing a messaging service that develops all the data structures and interaction processes throughout the messaging service delivery process. ACTIVEMQ, the Message Queuing service, is the ultimate implementation of message-oriented middleware (MOM) and is a true service provider.One of the standards of JMS is, or is, a protocol. Messaging is typically used for enterprise-level applications. There are mainly topi
The directory after ACTIVEMQ is extracted as follows:
Each directory is described as follows: Bin:activemq's startup script conf:activemq all profile data: Log file and persistent message DOCS:ACTIVEMQ official documentation EXAMPLES:ACTIVEMQ the official demo LIB:ACTIVEMQ Run the required library WEBAPPS:ACTIVEMQ Web console WEBAPPS-DEMO:ACTIVEMQ WebApps related demo ACTIVEMQ-ALL-5.13.2.JAR:ACTIVEMQ CLI ja
,WSNOTIFICATION,XMPP,AMQP
2. Full support for JMS1.1 and the Java EE 1.4 specification (persistence, XA messages, transactions)
3. Support for spring, ACTIVEMQ can easily be embedded into the system using spring, but also support the features of Spring2.0
4. Tested by common Java EE servers (such as Geronimo,jboss 4,glassfish,weblogic), with the configuration of JCA 1.5resource adaptors, Allows
RabbitMQ, ActiveMQ, and ZeroMQ are both excellent message-oriented middleware. but which of the following is more suitable for our project? Many developers are facing
RabbitMQ, ActiveMQ, and ZeroMQ are both excellent message-oriented middleware. but which of the following is more suitable for our project? Many developers are faced with this problem. Next I will compare the three message-oriented middleware
Simply put, it implements tracking and notification of various operations on the activemq broker.
With this function, you can know the broker in real time.
Creates or destroys a connection,
Added or deleted survivors or consumers,
Added or deleted topics or queues,
Messages are sent and received,
When are there slow consumers,
When will there be a producer?
When And when messages are discarded
When is the broker added to the cluster (Master
Technical Selection of message-oriented middleware-rabbitmq, activemq, and zeromq
Chszs, which must be noted for reprinting. Blog homepage: http://blog.csdn.net/chszs
Rabbitmq, activemq, and zeromq are both excellent message-oriented middleware. But which of the following is more suitable for our project? Many developers are faced with this problem. Below I will make a comparison between the three message-
In Activemq's Conf/activemq.xml master config file, there is this passage,650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8B/6B/wKioL1hOO8GREhQQAAEBIUDtPqU599.png "title=" 1.png " alt= "Wkiol1hoo8grehqqaaebiudtpqu599.png"/>The Transportconnectors field in this figure is the MQ protocol port for each network, as shown by the figure, Openwire this name uses the access port is 61616,AMQP this name's access port number is 5672. The value of nam
Technology selection of message middleware-RABBITMQ, ACTIVEMQ and ZEROMQCHSZS, reprint need to indicate. Blog home: Http://blog.csdn.net/chszsRabbitMQ, ACTIVEMQ, and ZEROMQ are excellent messaging middleware, but which of our options is better for our project? Many developers face this annoyance. Below I will make a comparison of the three message middleware, after you have seen it.RABBITMQ is a leading imp
Technology selection of message middleware-RABBITMQ, ACTIVEMQ and ZEROMQCHSZS, reprint need to indicate. Blog home: Http://blog.csdn.net/chszsRabbitMQ, ACTIVEMQ, and ZEROMQ are excellent messaging middleware, but which of our options is better for our project? Many developers face this annoyance. Below I will make a comparison of the three message middleware, after you have seen it.RABBITMQ is a leading imp
Technical Selection of message-oriented middleware-rabbitmq, activemq, and zeromq
Author: chszs, reprinted with note. Blog homepage: http://blog.csdn.net/chszs
Rabbitmq, activemq, and zeromq are both excellent message-oriented middleware. But which of the following is more suitable for our project? Many developers are faced with this problem. Next I will compare the three message-oriented middleware. Afte
Original address: https://simplesassim.wordpress.com/2013/11/03/how-to-setup-replicated-leveldb-persistence-in-apache-activemq-5-9/1) Install Apache ZooKeeper.2) Change the persistence adapter in the file:
123
persistenceAdapter>replicatedLevelDB directory="activemq-data" replicas="..." bind="tcp://0.0.0.0:61619" zkAddress="host:2181" zkPath="/activemq
Document directory
Related Solutions
Note: namespace
Template verification-XML elements are sorted by character
XML reference activemq XML reference
This page contains the link to the XML reference wizard and the template document of the XML configuration accompanied by the activemq release.Related Solutions
References
Reference
XML template
XML template namespace
Xbean XML r
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.