/*! \page install_activemq_page Install and Configure ActiveMQ
\section install_activemq_overview Overview
ActiveMQ is a messaging service that allows the Autopsy clients to communicate with each other. This allows each client to get real-time updates. This service has minimal storage requirements.
\section install_activemq_prereq Prerequisites
You will need:
- 64-bit version of the Java 8 Runtime Environment (JRE) from https://github.com/ojdkbuild/ojdkbuild ( Link to installer)
- Download ActiveMQ from: http://activemq.apache.org/download.html . Autopsy has been tested with ActiveMQ version 5.14.0.
\section install_activemq_install Installation
\subsection install_activemq_install_java JRE Installation
Install the Java JRE if needed. You can test this by running _where java_ from the command line. If you see output similar to the results below, you have a JRE.
\image html wherejava.PNG
If you need the JRE, install it with the default settings.
\subsection install_activemq_install_mq ActiveMQ Installation
1. Extract the contents of the ActiveMQ archive folder to a location of your choice, bearing in mind that the files should be in a location that the running process will have write permissions to the folder. A typical folder choice would be similar to C:\\Program Files\\apache-activemq-5.13.3. Typically, it will ask for administrator permission to move the folder. Allow it if required.
2. Edit the conf\\activemq.xml in the extracted folder to add "&wireFormat.maxInactivityDuration=0" to the URI for the _transportConnector_ named _openwire_. Add the text highlighted in yellow below:
\image html maxinactivityduration.PNG
3. Install ActiveMQ as a service by navigating to the folder bin\\win64, right-clicking _InstallService.bat_, clicking _Run as administrator_, then click _Yes_.
4. Start the ActiveMQ service by pressing _Start_, type _services.msc_, and press _Enter_. Find _ActiveMQ_ in the list and press the _Start the service_ link.
5. ActiveMQ should now be installed and configured using the default credentials.
\subsection install_activemq_test Testing
To test your installation, you can access the admin pages in your web browser via a URL like this: http://localhost:8161/admin.
The default administrator username is _admin_ with a password of _admin_ and the default regular username is _user_ with a default password of _password_. You can change these passwords by following the instructions below.
If you can see a page that looks like the following, it confirms that the ActiveMQ service is running locally but it does not necessarily mean that the service is visible to other computers on the network.
\image html activemq.PNG
You can confirm that your ActiveMQ installation is visible to other computers on the network by attempting to connect to a URL like the following (replacing the host name with that of the ActiveMQ computer) in a web browser: http://activemq-computer:61616
If you are unable to connect to this address:
- Double check that the ActiveMQ service is running
- Check that the port (61616) is not being blocked by a firewall.
\section install_activemq_install_pw Configuring Authentication
You can optionally add authentication to your ActiveMQ server. The ActiveMQ communications are not encrypted and contain basic messages between the systems about when new data has been found.
The following directions allow you to set up credentials:
1. Copy and paste the following text to the file "conf\groups.properties", overwriting the text highlighted in yellow in the screenshot below:
admins=system,sslclient,client,broker1,broker2
tempDestinationAdmins=system,user,sslclient,client,broker1,broker2
users=system,user,sslclient,client,broker1,broker2
guests=guest
system=manager
user=password
guest=password
sslclient=CN=localhost, OU=activemq.org, O=activemq.org, L=LA, ST=CA, C=US