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
Java Runtime Environment (JRE) JRE 1.7 (1.6 for version <=5.10.0)   
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
Main Apache ActiveMQ Download Page:
Download ActiveMQ bin Files
[root@hackthesec /]# wget
Download ActiveMQ Source Files
[root@hackthesec /]#wget
Unzip Source
[root@hackthesec /]#unzip 
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:
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
[root@hackthesec /]# mvn idea:idea
Unix Developer's Release 

[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
Verify port is listening
[root@hackthesec /]# netstat -nl|grep 8161
Using the administrative interface

Open the administrative interface
Login as user: admin password: admin

Stopping ActiveMQ

[root@hackthesec /]# cd apache-activemq-5.14.0-SNAPSHOT/bin   
[root@hackthesec /]# ./activemq stop

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment