blob: d023607807a95a665da6b72a33d9a8f124f29c17 [file] [log] [blame]
<div class="wiki-content maincontent"><h2>Introduction</h2><p>This document describes how to install and configure ActiveMQ for both Unix and Windows' platforms.</p><h2>Document Organization</h2><p>The Getting Started Guide for ActiveMQ contains the following sections:</p><p><structured-macro ac:macro-id="52e79b57-99db-4067-abdb-fb12a26a6bb6" ac:name="toc" ac:schema-version="1"></structured-macro></p><h2>Pre-Installation Requirements</h2><p><strong>Hardware:</strong></p><ul><li>60 MB of free disk space for the ActiveMQ binary distribution.</li><li>200 MB of free disk space for the ActiveMQ source or developer's distributions.</li></ul><p><strong>Operating Systems:</strong></p><ul><li>Windows: Windows XP SP2, Windows 2000.</li><li>Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any Unix platform that supports Java.</li></ul><p><strong>Environment:</strong></p><ul><li>Java Developer Kit (JDK) 1.7.x or greater for deployment and 1.7.x (Java 7) for compiling/building.</li><li>The JAVA_HOME environment variable must be set to the directory where the JDK is installed, e.g., <code>c:\Program Files\jdk.1.7.0_xx_xx</code>.</li><li>Maven 3.0 or greater (required when installing source or developer's releases).</li><li><a shape="rect" href="http://cvs.apache.org/repository/geronimo-spec/jars/">JARs</a> that will be used must be added to the classpath.</li></ul><h2>Installation Procedure for Windows</h2><p>This section of the Getting Started Guide explains how to install binary and source distributions of ActiveMQ on a Windows system.</p><h4>Windows Binary Installation</h4><p>This procedure explains how to download and install the binary distribution on a Windows system.</p><ol><li>From a browser, navigate to <a shape="rect" href="http://activemq.apache.org/">activemq.apache.org/</a>.</li><li>Click the <link><page ri:content-title="Download"></page></link> link in the navigation pane (the left pane).</li><li>Select the latest distribution (for older releases, click the link to the archives).<br clear="none"> For a binary distribution, the filename will be similar to: <code>activemq-x.x.x.zip</code>.</li><li>Extract the files from the ZIP file into a directory of your choice.</li><li>Proceed to the <link ac:anchor="Starting ActiveMQ"><plain-text-link-body>#Starting ActiveMQ</plain-text-link-body></link> section of this document.</li><li>Following start-up, go to the <link ac:anchor="Testing the Installation"><plain-text-link-body>#Testing the Installation</plain-text-link-body></link> section of this document.</li></ol><h4>Windows Source Installation</h4><p>This procedure explains how to download and install the source distribution on a Windows system.</p><p><strong>NOTE:</strong> ActiveMQ requires Java 7 to run and to build</p><ol><li>From a browser, navigate to <a shape="rect" href="http://activemq.apache.org/">activemq.apache.org/</a>.</li><li>Click the <link><page ri:content-title="Download"></page></link> link in the navigation pane (the left pane).</li><li>Select the latest distribution (for older releases, click the link to the archives).<br clear="none"> For a source distribution, the filename will be similar to: <code>activemq-x.x-src.zip</code>.</li><li>Extract ActiveMQ from the ZIP file into a directory of your choice.</li><li><structured-macro ac:macro-id="1dda15a6-3602-4020-b23e-0ab8b70735fb" ac:name="anchor" ac:schema-version="1"><parameter ac:name="">Windows Source Installation</parameter></structured-macro> Build ActiveMQ using Maven 2.1 or greater and Java 1.7.</li></ol><p>The recommended method of building ActiveMQ is the following:</p><structured-macro ac:macro-id="f167e238-f992-4524-9a93-b1c045dc13fb" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
mvn clean install
</plain-text-body></structured-macro><p>where [activemq_install_dir] is the directory in which ActiveMQ was installed.</p><p>If the above build fails on some tests, type the following:</p><structured-macro ac:macro-id="01275fdd-4d6c-45f7-b862-0542a5a41f61" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
mvn clean install -Dmaven.test.skip=true
</plain-text-body></structured-macro><ol><li><p>If you prefer to use an IDE, then you can auto-generate the IDE's project file using maven plugins:</p><structured-macro ac:macro-id="de3083ba-136c-46b4-82f2-9a18adac7d6f" ac:name="code" ac:schema-version="1"><plain-text-body>mvn eclipse:eclipse
</plain-text-body></structured-macro><p>or</p><structured-macro ac:macro-id="6312de16-1c00-4d56-84d4-b049fc17dbdc" ac:name="code" ac:schema-version="1"><plain-text-body>mvn idea:idea
</plain-text-body></structured-macro><p>Feel free to use any other applicable IDE. Please refer to the <a shape="rect" href="http://maven.apache.org/plugins/index.html">plugin reference</a> for more details.</p></li><li><p>Start ActiveMQ from the target directory, for example:</p><structured-macro ac:macro-id="84062c52-4ed9-4da4-94e3-646bad83d165" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]\assembly\target
unzip activemq-x.x-SNAPSHOT.zip
cd activemq-x.x-SNAPSHOT
bin\activemq
</plain-text-body></structured-macro><p><strong>NOTE:</strong> Working directories get created relative to the current directory. To create the working directories in the proper place, ActiveMQ must be launched from its home/installation directory.</p></li><li>Proceed to the <link ac:anchor="Testing the Installation"><plain-text-link-body>#Testing the Installation</plain-text-link-body></link> section.</li></ol><structured-macro ac:macro-id="bc245d60-9eab-4e3a-bd20-72fd9d398cab" ac:name="warning" ac:schema-version="1"><parameter ac:name="title">Warning</parameter><rich-text-body><p>If you are building ActiveMQ 5.x under Windows using Cygwin there is a path name length limitation. If the path name length is exceeded, you may see build errors. To correct this, move the ActiveMQ source directory higher in the file system tree, e.g., /cygdrive/c/d/sm.</p></rich-text-body></structured-macro><h4>Windows Developer's Release</h4><p>This procedure explains how to download and install the latest developer's snapshot.</p><p><strong>NOTE:</strong> ActiveMQ requires Java 7&#160;to run and to build</p><ol><li>From a browser, navigate to <a shape="rect" href="http://activemq.apache.org/">activemq.apache.org/</a>.</li><li>Click the <link><page ri:content-title="Download"></page></link> link in the navigation pane (the left pane).</li><li>Click the Maven ActiveMQ SNAPSHOT link.</li><li>Select the version of ActiveMQ to download</li><li>Extract the files from the ZIP file into a directory of your choice.</li><li>If a binary snapshot was downloaded, proceed to the <link ac:anchor="Starting ActiveMQ"><plain-text-link-body>#Starting ActiveMQ</plain-text-link-body></link> section of this document.<br clear="none"> If a source snapshot was downloaded, perform step 6 and step 7 of the <link ac:anchor="Windows Source Installation"><plain-text-link-body>#Windows Source Installation</plain-text-link-body></link> procedure.</li><li>Following start-up, proceed to the <link ac:anchor="Testing the Installation"><plain-text-link-body>#Testing the Installation</plain-text-link-body></link> section.</li></ol><h2>Installation Procedure for Unix</h2><h4><structured-macro ac:macro-id="3e673d86-a82d-4d40-ae1e-63c7156bb5fc" ac:name="anchor" ac:schema-version="1"><parameter ac:name="">Unix Binary Installation</parameter></structured-macro> Unix Binary Installation</h4><p>This procedure explains how to download and install the binary distribution on a Unix system.<br clear="none"> <strong>NOTE:</strong> There are several alternative ways to perform this type of installation.</p><ol><li><p>Download the activemq gzip file to the Unix machine, using either a browser or a tool, i.e., wget, scp, ftp, etc. for example:</p><structured-macro ac:macro-id="5f8ae6fe-ecf7-4088-b04b-6d9f35fb231c" ac:name="code" ac:schema-version="1"><plain-text-body>&gt; wget http://activemq.apache.org/path/tofile/apache-activemq-5.8-tar.gz
</plain-text-body></structured-macro></li><li><p>Extract the files from the gzip file into a directory of your choice. For example:</p><structured-macro ac:macro-id="0ba895a6-462c-42f0-842c-d15ad7f3e368" ac:name="code" ac:schema-version="1"><plain-text-body>&gt; tar zxvf activemq-x.x.x.tar.gz
</plain-text-body></structured-macro></li><li><p>If the <code>ActiveMQ</code> start-up script is not executable, change its permissions. The <code>ActiveMQ</code> script is located in the <code>bin</code> directory. For example:</p><structured-macro ac:macro-id="067f2740-6e65-4336-9433-ec216fc1ea81" ac:name="code" ac:schema-version="1"><plain-text-body>&gt; cd [activemq_install_dir]/bin
&gt; chmod 755 activemq
</plain-text-body></structured-macro></li><li>Proceed to the <link ac:anchor="Starting ActiveMQ"><plain-text-link-body>#Starting ActiveMQ</plain-text-link-body></link> section of this document.</li><li>Following start-up, go to the <link ac:anchor="Testing the Installation"><plain-text-link-body>#Testing the Installation</plain-text-link-body></link> section.</li></ol><h4>Unix Source Installation</h4><p>This procedure explains how to download and install the source distribution on a Unix system. This procedure assumes the Unix machine has a browser. Please see the previous <link ac:anchor="Unix Binary Installation"><plain-text-link-body>#Unix Binary Installation</plain-text-link-body></link> section for details on how to install ActiveMQ without a browser.</p><p><strong>NOTE:</strong> ActiveMQ requires Java 7 to run and to build</p><ol><li>From a browser, navigate to <a shape="rect" href="http://activemq.apache.org/">activemq.apache.org/</a>.</li><li>Click the <link><page ri:content-title="Download"></page></link> link in the navigation pane (the left pane).</li><li>Click the Maven ActiveMQ SNAPSHOT link.</li><li>Select the version of ActiveMQ to download<br clear="none"> For a source distribution, the filename will be similar to: <code>activemq-x.x-src.tar.gz</code>.</li><li><p>Extract the files from the ZIP file into a directory of your choice. For example:</p><structured-macro ac:macro-id="57a84e74-23f7-45cb-b75c-a9ff17fb2fa0" ac:name="code" ac:schema-version="1"><plain-text-body>tar zxvf activemq.x.x-src.tar.gz
</plain-text-body></structured-macro></li><li><p>Build ActiveMQ using Maven 3.0 or greater and Java 7:<br clear="none"> The preferred method of building ActiveMQ is the following:</p><structured-macro ac:macro-id="535f9e3a-a5c1-467e-8983-0dcbcbd683a2" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
mvn clean install
</plain-text-body></structured-macro><p>If Maven crashes with a java.lang.OutOfMemoryError, you you need to do this first (assuming a Bourne-like shell):</p><structured-macro ac:macro-id="b8a2b546-2300-436e-953f-c6830a183828" ac:name="code" ac:schema-version="1"><plain-text-body>export MAVEN_OPTS=-Xmx1024M
</plain-text-body></structured-macro><p>If the above build fails on some tests, do the following:</p><structured-macro ac:macro-id="e6fbfa5d-cf32-448c-9ac8-23f9441a57e3" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
mvn clean install -Dmaven.test.skip=true
</plain-text-body></structured-macro><p>If you prefer to use an IDE then you can auto-generate the IDE's project file using maven plugins:</p><structured-macro ac:macro-id="ee0ee40b-5be1-444b-9e8b-06f1879887a1" ac:name="code" ac:schema-version="1"><plain-text-body>mvn eclipse:eclipse
</plain-text-body></structured-macro><p>or</p><structured-macro ac:macro-id="0ec34c1f-2d89-4852-8e23-e379ae7a9665" ac:name="code" ac:schema-version="1"><plain-text-body>mvn idea:idea
</plain-text-body></structured-macro><p>Feel free to use any other applicable IDE. Please refer to the <a shape="rect" href="http://maven.apache.org/reference/plugins/plugins.html">plugin reference</a> for more details.<br clear="none"> <strong>NOTE:</strong> Working directories get created relative to the current directory. To create working directories in the proper place, ActiveMQ must be launched from its home/installation directory.</p></li><li>Proceed to the <link ac:anchor="Starting ActiveMQ"><plain-text-link-body>#Starting ActiveMQ</plain-text-link-body></link> section of this document.</li><li>Proceed to <link ac:anchor="Testing the Installation"><plain-text-link-body>#Testing the Installation</plain-text-link-body></link> section.</li></ol><h4>Unix Developer's Release</h4><p>This procedure explains how to download and install the latest developer's snapshot.</p><p><strong>NOTE:</strong> ActiveMQ requires Java 7 to run and to build</p><ol><li>From a browser, navigate to <a shape="rect" href="http://activemq.apache.org/">activemq.apache.org/</a>.</li><li>Click the <link ac:anchor="Download"><plain-text-link-body>#Download</plain-text-link-body></link> link in the navigation pane (the left pane).</li><li>Click the Maven ActiveMQ SNAPSHOT link.</li><li>Select the version of ActiveMQ to download</li><li><p>Extract the files from the gzip file into a directory of your choice. For example:<br clear="none"> For a binary developer's snapshot:</p><structured-macro ac:macro-id="0f2cce95-b6aa-4595-9836-c86f7e6ec9ef" ac:name="code" ac:schema-version="1"><plain-text-body>tar zxvf activemq-x.x.x.tar.gz
</plain-text-body></structured-macro><p>For a source developer's snapshot:</p><structured-macro ac:macro-id="3a156489-8800-47d2-b800-6faac69846c9" ac:name="code" ac:schema-version="1"><plain-text-body>tar zxvf activemq-x.x.x-src.tar.gz
</plain-text-body></structured-macro></li><li><p>If a binary snapshot was downloaded, to make it executable, the <code>ActiveMQ</code> script may need its permissions changed:</p><structured-macro ac:macro-id="e7a6c11a-8297-4dfd-a34a-bedd8aba7ffb" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]/bin
chmod 755 activemq
</plain-text-body></structured-macro></li><li>For a binary snapshot, proceed to the <link ac:anchor="Starting ActiveMQ"><plain-text-link-body>#Starting ActiveMQ</plain-text-link-body></link> section of this document.</li><li>If a source snapshot was downloaded perform steps 6 - 8 of the <link ac:anchor="Unix Source Installation"><plain-text-link-body>#Unix Source Installation</plain-text-link-body></link> procedure.</li><li>Proceed to the <link ac:anchor="Testing the Installation"><plain-text-link-body>#Testing the Installation</plain-text-link-body></link> section.</li></ol><h2><structured-macro ac:macro-id="5befb636-4253-4229-ba45-d60bcb563393" ac:name="anchor" ac:schema-version="1"><parameter ac:name="">Starting ActiveMQ</parameter></structured-macro> Starting ActiveMQ</h2><p>There now follows instructions on how to <link><page ri:content-title="Run Broker"></page><plain-text-link-body>run the ActiveMQ Message Broker</plain-text-link-body></link>.</p><structured-macro ac:macro-id="0492faf5-128a-475a-b3f3-70fb06f687a4" ac:name="tip" ac:schema-version="1"><rich-text-body><p>See also <link><page ri:content-title="Starting ActiveMQ with a different configuration file"></page><plain-text-link-body>Starting ActiveMQ with a different configuration file</plain-text-link-body></link></p></rich-text-body></structured-macro><h3>On Windows</h3><p>From a console window, change to the installation directory and run <code>ActiveMQ</code>:</p><structured-macro ac:macro-id="9d65c810-dc63-48cb-b3dc-c1b0ba1cf5b3" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
</plain-text-body></structured-macro><p>where <code>activemq_install_dir</code> is the directory in which ActiveMQ was installed, e.g., <code>c:\Program Files\ActiveMQ-5.x</code>.</p><p>Then type (depending on ActiveMQ version):</p><p><strong>ActiveMQ 5.10 onwards</strong></p><structured-macro ac:macro-id="93241836-2e91-42de-8917-400b185ee9d0" ac:name="code" ac:schema-version="1"><plain-text-body>bin\activemq start
</plain-text-body></structured-macro><p><strong>ActiveMQ 5.9 or older</strong></p><structured-macro ac:macro-id="5be63c1c-4cd7-4baf-9905-bb48bc1d38c5" ac:name="code" ac:schema-version="1"><plain-text-body>bin\activemq
</plain-text-body></structured-macro><p><strong>NOTE:</strong> Working directories get created relative to the current directory. To create working directories in the proper place, ActiveMQ must be launched from its home/installation directory.</p><h3>On Unix</h3><p>From a command shell, change to the installation directory and run <code>ActiveMQ</code>:</p><structured-macro ac:macro-id="d586b8c2-494d-4129-bc54-6571caf9c16d" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
</plain-text-body></structured-macro><p>where <code>activemq_install_dir</code> is the directory in which ActiveMQ was installed, e.g., <code>/usr/local/activemq-5.x</code>. <br clear="none" class="atl-forced-newline"> Then type:</p><structured-macro ac:macro-id="ebc96ce5-e577-4889-982f-4974ec3187ed" ac:name="code" ac:schema-version="1"><plain-text-body>bin/activemq start
OR
bin/activemq start &gt; /tmp/smlog 2&gt;&amp;1 &amp;;
Note: /tmp/smlog may be changed to another file name.
</plain-text-body></structured-macro><p><strong>NOTE:</strong> Working directories get created relative to the current directory. To create working directories in the proper place, ActiveMQ must be launched from its home/installation directory.</p><structured-macro ac:macro-id="bc0a5691-878b-4b62-a043-9ec94a3d26f5" ac:name="warning" ac:schema-version="1"><parameter ac:name="title">Warning</parameter><rich-text-body><p>Do NOT close the console or shell in which ActiveMQ was started, as that will terminate ActiveMQ (unless ActiveMQ was started with nohup).</p><structured-macro ac:macro-id="d00d5f4e-0406-4638-91ad-8843e376c8f6" ac:name="code" ac:schema-version="1"><plain-text-body>nohup bin/activemq &gt; /tmp/smlog 2&gt;&amp;1 &amp;
</plain-text-body></structured-macro></rich-text-body></structured-macro><h3>More help</h3><p>For other ways of running the broker see <link><page ri:content-title="Run Broker"></page><plain-text-link-body>Here</plain-text-link-body></link>. For example you can run an <link><page ri:content-title="How do I embed a Broker inside a Connection"></page><plain-text-link-body>embedded broker</plain-text-link-body></link> inside your JMS Connection to avoid starting a separate process.</p><h2><structured-macro ac:macro-id="fd0878ac-b448-456c-9f3b-344f4604e782" ac:name="anchor" ac:schema-version="1"><parameter ac:name="">Testing the Installation</parameter></structured-macro> Testing the Installation</h2><p>If ActiveMQ is up and running without problems, the Window's console window or the Unix command shell will display information similar to the following log line:</p><structured-macro ac:macro-id="4b904af1-4db6-4f95-9ce0-a972130ebd80" ac:name="code" ac:schema-version="1"><plain-text-body>INFO ActiveMQ JMS Message Broker (ID:apple-s-Computer.local-51222-1140729837569-0:0) has started
</plain-text-body></structured-macro><p><br clear="none" class="atl-forced-newline"> ActiveMQ's default port is 61616. From another window run netstat and search for port 61616.</p><p>From a Windows console, type:</p><structured-macro ac:macro-id="4a13b281-4b1c-45f4-a841-3a631d550af4" ac:name="code" ac:schema-version="1"><plain-text-body>netstat -an|find "61616"
</plain-text-body></structured-macro><p><strong>OR</strong></p><p>From a Unix command shell, type:</p><structured-macro ac:macro-id="fbfff630-333f-49a4-9418-811a8d38cbe5" ac:name="code" ac:schema-version="1"><plain-text-body>netstat -an|grep 61616
</plain-text-body></structured-macro><h2>Monitoring ActiveMQ</h2><p><structured-macro ac:macro-id="461bd876-68aa-497a-8eff-96b67e48272f" ac:name="include" ac:schema-version="1"><parameter ac:name=""><link><page ri:content-title="Monitoring ActiveMQ"></page></link></parameter></structured-macro></p><h2>Stopping ActiveMQ</h2><p>For both Windows and Unix installations, terminate ActiveMQ by typing "CTRL-C" in the console or command shell in which it is running.</p><p>If ActiveMQ was started in the background on Unix, the process can be killed, with the following:</p><structured-macro ac:macro-id="e1386f76-1f5f-49bc-a688-bf130692fbb3" ac:name="code" ac:schema-version="1"><plain-text-body>cd [activemq_install_dir]
</plain-text-body></structured-macro><p>where <code>activemq_install_dir</code> is the directory in which ActiveMQ was installed, e.g., <code>/usr/local/activemq-5.x</code>. <br clear="none" class="atl-forced-newline"> Then type:</p><structured-macro ac:macro-id="aa98b67f-ae37-4896-9286-7f28701fdd71" ac:name="code" ac:schema-version="1"><plain-text-body>bin/activemq stop
</plain-text-body></structured-macro><p>Or you can do the following:</p><structured-macro ac:macro-id="fefd5a0f-9319-4f75-9b24-187c01aa2e34" ac:name="code" ac:schema-version="1"><plain-text-body>ps -ef|grep activemq
kill [PID]
where [PID] is the process id of the ActiveMQ process.
</plain-text-body></structured-macro><h2><structured-macro ac:macro-id="edcbd9c1-8895-47b8-920c-8820bb5caf4b" ac:name="anchor" ac:schema-version="1"><parameter ac:name="">Starting ActiveMQ with a different configuration file</parameter></structured-macro> Starting ActiveMQ with a different configuration file</h2><p>By default ActiveMQ uses the <code>conf/activemq.xml</code> as the main configuration file when starting. If you want to use a different configuration file you can specify this as a parameter.</p><h4>ActiveMQ 5.8 or older</h4><p>For example to use <code>conf/activemq-demo.xml</code> which includes the web demos, you do as follows:</p><structured-macro ac:macro-id="1245225a-9120-4801-8df4-743139b89f7f" ac:name="code" ac:schema-version="1"><plain-text-body>bin/activemq console xbean:conf/activemq-demo.xml
</plain-text-body></structured-macro><p>To start Active in console mode and load the <code>conf/activemq-demo.xml</code> file. Yes you need the <code>xbean:</code> as prefix.</p><p>And to launch as a background process you can do:</p><structured-macro ac:macro-id="1a122978-011e-4c51-9865-0d234caf4668" ac:name="code" ac:schema-version="1"><plain-text-body>bin/activemq start xbean:conf/activemq-demo.xml
</plain-text-body></structured-macro><h4>ActiveMQ 5.9 onwards</h4><p>For example to use <code>examples/conf/activemq-demo.xml</code> which includes the web demos, you do as follows:</p><structured-macro ac:macro-id="40feacc6-35e2-4ce9-a166-343607dbd235" ac:name="code" ac:schema-version="1"><plain-text-body>bin/activemq console xbean:examples/conf/activemq-demo.xml
</plain-text-body></structured-macro><p>To start Active in console mode and load the <code>examples/conf/activemq-demo.xml</code> file. Yes you need the <code>xbean:</code> as prefix.</p><p>And to launch as a background process you can do:</p><structured-macro ac:macro-id="6dca296b-9877-4d06-aa68-6778a8aedb52" ac:name="code" ac:schema-version="1"><plain-text-body>bin/activemq start xbean:examples/conf/activemq-demo.xml
</plain-text-body></structured-macro><h2>Configuring ActiveMQ</h2><p>The ActiveMQ broker should now run. You can configure the broker by specifying an <link><page ri:content-title="Xml Configuration"></page></link> file as a parameter to the <em>activemq</em> command. An alternative is to use the <link><page ri:content-title="Broker Configuration URI"></page></link> to configure things on the command line in a concise format (though the configuration options are not as extensive as if you use Java or XML code). You can also</p><p>Also see <link><page ri:content-title="Configuring Transports"></page></link> to see how you can configure the various connection, transport and broker options using the connection URL in the ActiveMQConnectionFactory.</p><p>See the <link><page ri:content-title="Initial Configuration"></page></link> for details of which jars you need to add to your classpath to start using ActiveMQ in your Java code</p><p>If you want to use JNDI to connect to your JMS provider then please view the <link><page ri:content-title="JNDI Support"></page></link>. If you are a Spring user you should read about <link><page ri:content-title="Spring Support"></page></link></p><p>After the installation, ActiveMQ is running with a basic configuration. For details on configuring options, please see refer to the <link><page ri:content-title="Configuration"></page></link> section.</p><h2>Additional Resources</h2><p>If you are new to using ActiveMQ, running the <link><page ri:content-title="Web Samples"></page></link> or the <link><page ri:content-title="Examples"></page></link> is a good next step to learn more about ActiveMQ.</p></div>