ActiveMQ introduction, installation, startup

tags: activemq

Introduction to ActiveMQ

What is ActiveMQ
ActiveMQ is launched by Apache, an open source, fully supports Message Oriented Middleware (MOM) implemented by JMS Provider of JMS1.1 and J2EE 1.4 specifications

What ActiveMQ can do
The main function is to implement the JMS Provider, which is used to help implement a high-availability, high-performance, scalable, easy-to-use and secure enterprise-level message service-oriented system

Features of ActiveMQ
Fully supports JMS1.1 and J2EE 1.4 specifications (persistent, XA message, transaction)
Support multiple transmission protocols: in-VM, TCP, SSL, NIO, UDP, JGroups, JXTA
Pluggable architecture, which can be flexibly customized, such as: message storage method, security management, etc.
It is easy to integrate with Application Server
A client for writing multiple languages ​​and protocols. Languages: Java, C, C ++, C #, Ruby, Perl, Python, PHP
The design guarantees a high-performance cluster, client-server, peer-to-peer
can be easily combined with Spring
Support high-speed message persistence through JDBC and journal
Support integration with Axis

Message middleware

Basic functions of MOM: transfer information from one application to another or multiple applications in the form of messages.
Main features of MOM:
1: Messages are received asynchronously, similar to the behavior of mobile phone SMS, the sender of the message does not need to wait for the response of the message recipient, reducing the soft
coupling degree of multi-system integration;
2: Reliable message reception, to ensure that the message is reliably stored in the middleware, only delete the message after the receiver receives it, and multiple messages
can form atomic transactions
The main application scenarios of message middleware:
When integrating and communicating between multiple systems, it usually requires:
1: Reliable transmission, data cannot be lost, and sometimes, it cannot be repeated;
2: Asynchronous transmission, otherwise all systems send and receive data synchronously and wait for each other, causing a system bottleneck
Currently well-known message middleware:
IBM MQSeries
BEA WebLogic JMS Server
Oracle AQ
Tibco
SwiftMQ
AcitveMQ: It is a free java implementation message in the middle


ActiveMQ installation and basic use

Download and install ActiveMQ server
1: Download the latest ActiveMQ from http://activemq.apache.org/download.html
2: Unzip it directly, then copy it to the location you want to install
Start running
1: Normal start: Go to ActiveMQ / bin, ./activemq start
2: Start and specify the log file ./activemq start> / tmp / activemqlog
Check if it has started
By default, ActiveMQ uses port 61616 to provide JMS services and port 8161 to provide management console services
task, execute the following command to verify whether the ActiveMQ service has been successfully started:
1: For example, to check whether port 61616 is open: netstat -an | grep 61616
2: You can also directly view the console output or log file
3: You can also directly access the ActiveMQ management page: http://127.0.0.1:8161/admin/
The default username and password is admin / admin

Close ActiveMQ
You can use./activemq stop
Violent points can use ps -ef | grep activemq to get the process number, and then kill

Note error when starting on windows
Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

need

Solution:
1. Confirm that the computer host name is not underlined;


2. If it is win7, stop ICS (run-> services.msc to find the Internet Connection Sharing (ICS) service and change to manual start or disable)


Just restart activeMQ.



Intelligent Recommendation

ActiveMQ (1) Introduction and installation

ActiveMQ (1) Introduction and installation ActiveMQ is a kind of message middleware ActiveMQ is the most popular and powerful open source messaging bus from Apache. ActiveMQ is a JMS Provider implemen...

[] Introduction and installation ActiveMQ

[Introduction] Previous blog talked aboutJMS messaging specificationWhile Cipian to explain the specific implementation of the JMS specification --ActiveMQ 1. From what Apache ActiveMQ is produced, mo...

A, activemq Introduction and Installation

1. ActiveMQ Profile Apache ActiveMQ is provided by an open source messaging system completely implemented in Java, so it is a good support for J2EE proposed JMS (Java Message Service, the Java Message...

ActiveMQ Introduction Installation Configuration

  ActiveMQ Introduction Installation Configuration See more (www.omob.cc) Introduction to MQ: MQ is calledMessage Queue, Message Queuing (MQ) is an application-to-application communication method...

Introduction of Windows installation ActiveMQ

Message middleware Let's briefly introduce the message middleware, just have a basic understanding of it, the message middleware (MOM: Message Orient middleware). Message middleware has many uses and ...

More Recommendation

ActiveMQ 5.15.3 introduction and installation

ActiveMQ introduction Official website description Apache ActiveMQ ™ is the most popular and powerful open source messaging and Integration Patterns server. Apache ActiveMQ is fast, supports man...

ActiveMQ introduction and installation

1. Introduction to JMS   Full name: Java Message Service Chinese: Java Message Service.   JMS is a set of Java API standards. The original purpose is to enable applications to acce...

ActiveMQ introduction and installation and deployment

ActiveMQ introduction ActiveMQ is the most popular and powerful open source message bus produced by Apache. ActiveMQ is a JMS Provider implementation that fully supports the JMS1.1 and J2EE 1.4 specif...

A brief introduction and installation of ActiveMQ

Foreword: Recently I came into contact with the message queue and learned about activeMQ, and I made a simple record here to facilitate future queries. 1. What is ActiveMQ 1.1 Introduction ActiveMQ is...

Introduction to ActiveMQ installation and use

What is ActiveMQ MQ, commonly known as message queue, also known as message middleware, is a medium through which applications can deliver messages in a distributed system.ActiveMQ,RabbitMQ,kafka。Acti...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top