Apache ActiveMQ
Apache ActiveMQ is an open source message broker written in Java together with a full Java Message Service (JMS) client. It provides "Enterprise Features" which in this case means fostering the communication from more than one client or server.
Drive Space Requirements
60 MB of free disk space for the ActiveMQ 5.x binary distribution.
300 MB of free disk space for the ActiveMQ 5.x source or developer's distributions.
Operating System Requirement
Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any Unix platform that supports Java.
Environment Requirements
The JAVA_HOME environment variable must be set to the directory where the JRE is installed
(Unix: the binary "java" has to be resolvable by the PATH variable; execute "which java" to verify)
Maven 3.0.0 build system JARs that will be used must be added to the classpath.
Software Requirements
Java 1.7+ ActiveMQ v5.10+
Java 1.6 ActiveMQ v5.10.0-
Maven 3.x
Download ActiveMQ bin Files
[root@hackthesec /]# wget https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.14.0-SNAPSHOT/apache-activemq-5.14.0-20160226.040949-19-bin.tar.gz
Download ActiveMQ Source Files
[root@hackthesec /]#wget http://mirror.fibergrid.in/apache/activemq/5.9.1/activemq-parent-5.9.1-source-release.zip
Unzip Source
[root@hackthesec /]#unzip activemq-parent-5.9.1-source-release.zip
Extract bin files from the zipped tarball into a directory of your choice.
[root@hackthesec /]#tar zxvf apache-activemq-5.14.0-20160226.040949-19-bin.tar.gz
Apple Machines
[root@hackthesec /]#brew install apache-activemq
Getting the Binaries using Maven 2
To use this release in your maven project, the proper dependency configuration that you should use in your Maven POM is:
[root@hackthesec /]# vim pom.xml
Add the below:
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.9.1</version>
</dependency>
Build ActiveMQ using Maven
[root@hackthesec /]# cd apache-activemq-5.14.0-SNAPSHOT
[root@hackthesec /]# mvn clean install
[root@hackthesec /]# add "-Dmaven.test.skip=true" if tests are failing on your system (should not happen)
If Maven crashes with a java.lang.OutOfMemoryError, you you need to do this first
export MAVEN_OPTS="-Xmx512M"
If you prefer to use an IDE then you can auto-generate the IDE's project file using maven plugins:
[root@hackthesec /]# mvn eclipse:eclipse
OR
[root@hackthesec /]# mvn idea:idea
[root@hackthesec /]# tar zxvf apache-activemq-5.14.0-20160226.040949-19-bin.tar.gz
Make ActiveMQ executable
[root@hackthesec /]# cd apache-activemq-5.14.0-SNAPSHOT/bin
[root@hackthesec /]# chmod 755 activemq
ActiveMQ Binary Developer Snapshot
Extract the files from the gzip file into a directory of your choice.
[root@hackthesec /]# cd apache-activemq-5.14.0-SNAPSHOT/bin
[root@hackthesec /]# ./activemq console
ActiveMQ Source Developer Snapshot
From a command shell, change to the installation directory and run ActiveMQ as a daemon process:
[root@hackthesec /]# cd apache-activemq-5.14.0-SNAPSHOT/bin
[root@hackthesec /]# ./activemq start
[root@hackthesec /]# netstat -nl|grep 8161
Using the administrative interface
Open the administrative interface
URL: http://127.0.0.1:8161/admin/
Login as user: admin password: admin
Stopping ActiveMQ
[root@hackthesec /]# cd apache-activemq-5.14.0-SNAPSHOT/bin
[root@hackthesec /]# ./activemq stop