JMS study notes (2) Installation of ActiveMQ under window

ActiveMQ is produced by Apache and is a JMS Provider implementation that fully supports JMS1.1 and J2EE 1.6 specifications. It is very fast, supports clients and protocols in multiple languages, and can be easily embedded into enterprise application environments. There are many advanced features. It is an easy-to-use message middleware and an implementation of the JMS message communication specification. A container for receiving and forwarding a message, which can be used for message push.

Message middleware has many uses and advantages:
1. Transfer data from one application to another, or from one software module to another;
2. Responsible for establishing network communication channels for reliable data send.
3. Ensure that the data is not retransmitted or lost
4. It can realize cross-platform operation, and can provide data transmission services for software integration technicians

on Preparations

Download ActiveMQ

official website: http://activemq.apache.org/download -archives.html Since jdk1.6
is installed on the experimental machine, I downloaded the older version apache-activemq-5.10.0
. When downloading, pay attention to the instructions. The jdk version needs to be supported.

Second, run the ActiveMQ service

and decompress the




bin. The script file
conf stores the basic configuration file
data stores the log file
docs stores the description document
examples stores the simple example
lib stores the jar package required by activemq
The directory where webapps stores the project
activemq-all-5.10.0 jar package used to develop applications

Enter the bin directory, enter the win32 or win64 directory according to the number of your machine subsystem, and run the activemq.bat file to start the message service. The experimental machine is a 32-bit system.




The effect diagram after running, from the figure below we can see the storage address of activemq, and the address to be accessed by the browser.




3. Test

the TCP connection port used by ActiveMQ by default is 61616, by viewing the information of this port, you can test whether ActiveMQ is successful Start netstat -an|find "61616"

C:\Documents and Settings\Administrator>netstat -an|find "61616"
TCP 0.0.0.0:61616 0.0.0.0:0 LISTENING

4. When monitoring
ActiveMQ by default, start the built-in The jetty server provides an admin application for monitoring ActiveMQ.
admin: http://127.0.0.1:8161/admin/ The

username and password are both admin

5. At this point, the server is started and

stopped , just press Ctrl+Shift+C, and then enter y

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326690589&siteId=291194637