0% found this document useful (0 votes)
63 views12 pages

Active MQ Install - Linux: Holger Paffrath September 2010

ActiveMQ is an open source Java messaging implementation that supports multiple platforms and languages. This document provides instructions for installing ActiveMQ on Linux and configuring HermesJMS, an open source JMS queue viewer, to connect to and view messages from ActiveMQ. The key steps are downloading and extracting ActiveMQ, starting the ActiveMQ server, downloading and running the HermesJMS installer, configuring HermesJMS to connect to ActiveMQ using the appropriate JAR files and broker URL, and verifying connection by sending a test message from the ActiveMQ HTTP interface and viewing it in HermesJMS.

Uploaded by

S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views12 pages

Active MQ Install - Linux: Holger Paffrath September 2010

ActiveMQ is an open source Java messaging implementation that supports multiple platforms and languages. This document provides instructions for installing ActiveMQ on Linux and configuring HermesJMS, an open source JMS queue viewer, to connect to and view messages from ActiveMQ. The key steps are downloading and extracting ActiveMQ, starting the ActiveMQ server, downloading and running the HermesJMS installer, configuring HermesJMS to connect to ActiveMQ using the appropriate JAR files and broker URL, and verifying connection by sending a test message from the ActiveMQ HTTP interface and viewing it in HermesJMS.

Uploaded by

S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Active MQ Install Linux

Holger Paffrath September 20 0


http!""Integration#ngineer$%or&press$com

Introduction
ActiveMQ is one of many Open Source Java Messaging implementation that supports multiple platforms as well as multiple languages. Another notable Open JMS implementations are OpenMQ which is the reference implementation for JMS by Sun Microsystems/Oracle, which I have use for several years un er my wor! at Sun, but its time to e"plore what else is out there. #his tutorial forms the basis of my e"ploration of the Apache implementations of Open Source $nterprise Service %uses. #he first being Apache &amel. As I learn how to o implementations within the Open Source $S% pro ucts, I will be posting tutorials of my fin ings. Messaging software forms the basis of an $S% implementation. It provi es the capability ivi e an process asynchronously transactions. It also provi es a metho to scale implementations hori'ontally epen ing on the architecture of your solution. It also provi es one metho to ta!e a vantage of multiprocessing capabilities of to ays systems where we have multi(cores, multi(processors an multiple systems. #his tutorial is a first step tutorial an goes through the installation of ApacheMQ onto your system an verifying that the system wor!s.

Installation of ActiveMQ
)e*uirements + Java J,- ../ or higher. ,ownloa a copy of ActiveMQ from the Active MQ web site + http+//activem*.apache.org/ 0n'ip the file, currently the latest version of ActiveMQ has the filename apache(activem*(1.2.3( bin.tar.g' for linu". 4lace this e"tracte irectory into the irectory where you woul li!e to run ActiveMQ. My preference is in the /opt irectory on 5inu". &hange to the 6/opt/apache(activem*(1.2.3/bin/ irectory an run 6activem* start7.

8ou shoul get the following output.

9or :in ows, things are a little ifferent, you ;ust nee to run 6activem*7 without the start option. #his will start ActiveMQ in a terminal win ow. 8ou will also not get the prompt bac!. about+home

.33<about+home ActiveMQ has now been installe .

Installation of HermesJMS
#he ne"t thing that we are going to install is a program calle =ermesJMS. =ermesJMS is an open source JMS *ueue viewer an is compatible with *ute a number of JMS *ueue implementations. =ermesJMS can be foun at http+//www.hermes;ms.com Once you have ownloa e a copy of =ermesJMS, run the installation wi'ar by e"ecuting... java -jar hermes-installer-1.13.jar

#o e"ecute, run the hermes.bat in :in ows or hermes.sh in 0ni".

#o configure =ermesJMS to connect to ActiveMQ. Select, Options, then &onfiguration

clic! on the 64rovi ers7 tab an then right clic! on the 6&lasspath >roups7 area an select 6A >roup7

>ive the group, the name 6ActiveMQ7 an right clic! on the 5ibrary an clic! on 6A

JA)?s@7.

=ere we nee to a

the JA)S re*uire to communicate with Apache ActiveMQ.

A the activem*(core(1.2.3.;ar an the geronimo(;Aee(managementB...Bspec(..3...;ar files foun in your activem*/lib irectory. #hese versions of the files are for ActiveMQ 1.2.3 an may iffer epen ing on the version of ActiveMQ you have installe . Ce"t, select the Session tab an in the Session rop own bo", enter a new session name calle 6ActiveMQ7.

0n er the 65oa er7, select the ActiveMQ provi er that we create above.

0n er &onnection 9actory, Select the org.apache.activem*.ActiveMQSsl&onnection9actory an enter property bro!er0)5 D tcp+//localhost+/././

0n er ,estinations, a

the 9OO.%A) *ueue

9inally, enter something in 6client7. In this case 6""7 :e ;ust nee a value here. Anything will o.

8ou shoul now have a configuration that loo!s li!e the following.

Cow that ActiveMQ an =ermes has been installe , it is now time to test it. >o to the 0)5 http+//localhost+E././ emo 8ou shoul now see the screen below.

&lic! on the 6Sen a Message7 lin!.

$nter a message, an clic! Sen .

%ring up =ermes. Cavigate to the 9OO.%A) *ueue

An you will see your message.

References
=ermes JMS http+//www.hermes;ms.com http+//www.hermes;ms.com/confluence/ isplay/=JMS/Installing Apache ActiveMQ http+//activem*.apache.org/ :i!ipe ia http+//en.wi!ipe ia.org/wi!i/Activem*

You might also like