In the real enterprise, the application of message communication has been very hot, and plays a special role in the enterprise application of the Java EE, so it is very necessary to study it.
On the basic concept of JMS (i) –JMS, we introduced the canonical JMS of message communication, and this blog post introduces an open source JMS implementation--ACTIVEMQ. ACTIVEMQ is an easy-to-use message middleware
Abstract: ActiveMQ optimized thread Optimization
Address: http://fusesource.com/docs/broker/5.4/tuning/PersTuning-Threading.html
Optimized dispatch: In Broker configuration, you can set
OptimizedDispatchIs
TrueTo reduce the demand for Tread. In this way, the Broker will not use a dedicated thread for each targ
In the following three scenarios, the ACTIVEMQ message is sent back to the client/consumer:
1. Use a transaction session, and call the rollback () method;
2. A transaction session, a commit was called before closing;
3. The Client_acknowledge signature mode is used in the session, and the Session.recover () method is called.
The broker uses the Brokerinfo command package to establish a connection to the c
Recently deployed ACTIVEMQ, found that some servers can open the background management URL, some servers cannot open, jetty reported 503 Service unavailable.After a long time finally found the problem, now the deployment and resolution process to take notes as follows:Installation Deployment steps:# See if it comes with JavaRpm-qa | grep java# Uninstall Linux comes with the OpenjavaYumRemove-y Java# orRPM-E java# upload or network download JDK 7rz JDK
Activemq is an open-source JMS server that implements the JMS 1.1 Standard. hermesjms is an open-source GUI tool that can connect to many kinds of JMS servers.
However, the configuration methods provided on hermesjms's official website are not detailed, which often puts users in trouble for the first time. This document provides detailed operation steps and a video clip.
1. Install activemq
1. Download act
1. Download ACTIVEMQGo to official website download: http://activemq.apache.org/2. Running ACTIVEMQUnzip Apache-activemq-5.5.1-bin.zip, and then double-click Apache-activemq-5.5.1\bin\activemq.bat to run the ACTIVEMQ program.After starting ACTIVEMQ, log in: http://localhost:8161/admin/, create a queue, named Firstqueue
Configure startup destinations)
Although activemq can be used to automatically create a queue, it is necessary to configure it at startup in some cases. For example, if security settings are configured, the queue user does not have the permission to create a queue.
In this case, you only need to add the queue to be created at startup to the broker node in the configuration file:
Http://www.sprin
Activemq is the most popular and powerful open-source message bus produced by Apache. Activemq is a JMS provider that fully supports the jms1.1 and J2EE 1.4 specifications. Although it has been a long time since the JMS specifications were introduced, however, JMS still plays a special role in today's J2EE applications.
Main features:
1. Write clients in multiple languages and protocols. Languages: Java, C,
I. Opening Speech
Following the previous article on sending and receiving messages using jms in weblogic, this article uses ActiveMQ, an open source component of apache, to discuss the topic of JMS. This article is just an example of activating ActiveMQ, hope to help you.
Ii. ActiveMQ
1. ActiveMQ introduction:
1. Download ACTIVEMQGo to official website download: http://activemq.apache.org/2. Running ACTIVEMQUnzip Apache-activemq-5.5.1-bin.zip, and then double-click Apache-activemq-5.5.1\bin\activemq.bat to run the ACTIVEMQ program.After starting ACTIVEMQ, log in: http://localhost:8161/admin/, create a queue, named Firstqueue
A: Create a new MAVEN project and join the following dependenciesTwo:ServerPackage Com.lala.mq;import Java.util.concurrent.timeunit;import Org.apache.activemq.broker.brokerservice;public Class Server {public static void main (string[] args) throws Exception{brokerservice broker = new Brokerservice (); broker.ad Dconnector ("tcp://127.0.0.1:55551"); Broker.setusejmx (false); Broker.start (); TimeUnit.SECONDS.sleep (9999);}}ProducerPackage Com.lala.mq;i
Today, my company colleagues asked me to help install a ACTIVEMQ,ACTIVEMQ is Apache, the most popular, powerful open source message bus. ACTIVEMQ is a JMS provider implementation that fully supports the JMS1.1 and Java EE 1.4 specifications, Although it has been a long time since the JMS specification was introduced, JMS still plays a special role in today's Java
ACTIVEMQ is a message middleware that implements the JMS specification, providing both point-to-point and subscription-release modes. The following describes the use of ACTIVEMQ;First, the construction of the environmentFirst we need to download the ACTIVEMQ installation package, http://activemq.apache.org/activemq-510
Assume that the two servers with the activemq Service are:
We plan to share the data storage directory in the activemq directory on 91 to the activemq service of 90.
Configuration on 91:1. Install the NFS service and rpcbind service. These two services are generally installed on the server, you can run the "service NFS status" and "service rpcbind status" comm
Original address: http://www.cnblogs.com/jaycekon/p/6225058.html1. Download and install ACTIVEMQACTIVEMQ Official website: http://activemq.apache.org/download.htmlActiveMQ provides several versions of Windows and Linux, Unix, and so on, the landlord chose the Linux version for development.After downloading the installation package, unzip the directory: From its directory, it is still very simple:
The bin holds the script file
Conf storage is a basic configuration file
Da
Linuxinstall Activemq 5.14.1 in the1 , download related ActiveMQ Install packageDownload path:http://activemq.apache.org/download.htmlDownload the latest installation package and select Linux for download2 , unzip rename( 1 ) Decompression:# TAR-ZXVF Apache-activemq-5.14.1-bin.tar.gz-c/usr/local( 2 ) Rename ActiveMQ# M
In the real enterprise, the application of message communication has been very hot, and plays a special role in the enterprise application of the Java EE, so it is very necessary to study it.In brief, the basic concept of JMS (a) –JMS, we introduce the canonical JMS of message communication, we introduce an open source JMS concrete implementation--activemq. ACTIVEMQ is an easy-to-use message middleware.Mess
Recently there are projects that use Message Queuing, the best open source framework in the JMS specification is ACTIVEMQ, so choose it (of course, this is my boss's decision, like I just into the workplace of the little rookie to consider the problem is not comprehensive) as a message queue to transmit data, the company has a formed Message queue framework implementation, However, the framework of the company in the implementation of a good and compr
Original: http://blog.csdn.net/jiuqiyuliang/article/details/47160259In the real enterprise, the application of message communication has been very hot, and plays a special role in the enterprise application of the Java EE, so it is very necessary to study it.In brief, the basic concept of JMS (a) –JMS, we introduce the canonical JMS of message communication, we introduce an open source JMS concrete implementation--activemq.
I. Basic Concepts As part of the J2EE system standard, JMS specifies the specifications for sending and receiving messages synchronously and asynchronously between applications. Activemq is a message server that implements the JMS standard. Several important concepts of activemq: 1.
Client: activemq The client includes two types: producer and consumer. It can be
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.