activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache ActiveMQ > Getting Started 3.x
Date Tue, 11 Feb 2014 15:34:01 GMT
<html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <base href="https://cwiki.apache.org/confluence" />
        <style type="text/css">
    body, #email-content, #email-content-inner { font-family: Arial,FreeSans,Helvetica,sans-serif; }
    body, p, blockquote, pre, code, td, th, li, dt, dd { font-size: 13px; }
    small { font-size: 11px; }

    body { width:100% !important; -webkit-font-smoothing: antialiased; }

    body,
    #email-wrapper { background-color: #f0f0f0; }
    #email-wrapper-inner { padding: 20px; text-align: center; }
    #email-content-inner { background-color: #fff; border: 1px solid #bbb; color: $menuTxtColour; padding:20px; text-align:left; }
    #email-wrapper-inner > table { width: 100%; }
    #email-wrapper-inner.thin > table { margin: 0 auto; width: 50%; }
    #email-footer { padding: 0 16px 32px 16px; margin: 0; }

    .email-indent { margin: 8px 0 16px 0; }
    .email-comment { margin: 0 0 0 56px; }
    .email-comment.removed { background-color: #ffe7e7; border: 1px solid #df9898; padding: 0 8px;}

    #email-title-avatar { text-align: left; vertical-align: top; width: 48px; padding-right: 8px; }
    #email-title-flavor { margin: 0; padding: 0 0 4px 0; }
    #email-title-heading { font-size: 16px; line-height: 20px; min-height: 20px; margin: 0; padding: 0; }
    #email-title .icon { border: 0; padding: 0 5px 0 0; text-align: left; vertical-align: middle; }

    #email-actions { border-top: 1px solid #bbb; color: #505050; margin: 8px 0 0 0; padding: 0; }
    #email-actions td { padding-top: 8px; }
    #email-actions .left { max-width: 45%; text-align: left; }
    #email-actions .right { text-align: right; }
    .email-reply-divider { border-top: 1px solid #bbb; color: #505050; margin: 32px 0 8px 0; padding: 8px 0; }
    .email-section-title { border-bottom: 1px solid #bbb; margin: 8px 0; padding: 8px 0 0 0; }

    .email-metadata { color: #505050; }

    a { color: #326ca6; text-decoration: none; }
    a:hover { color: #336ca6; text-decoration: underline; }
    a:active {color: #326ca6; }

    a.email-footer-link { color: #505050; font-size: 11px; }

    .email-item-list { list-style: none; margin: 4px 0; padding-left: 0; }
    .email-item-list li { list-style: none; margin: 0; padding: 4px 0; }
    .email-list-divider { color: #505050; padding: 0 0.35em; }
    .email-operation-icon { padding-right: 5px; }

    .avatar { -ms-interpolation-mode: bicubic; border-radius: 3px;}
    .avatar-link { margin: 2px; }

    .tableview th { border-bottom: 1px solid #69C; font-weight: bold; text-align: left; }
    .tableview td { border-bottom: 1px solid #bbbbbb; text-align: left; padding: 4px 16px 4px 0; }

    .aui-message {  margin: 1em 0; padding: 8px; }
    .aui-message.info { background-color: #e0f0ff; border: 1px solid #9eb6d4; }
    .aui-message.success { background-color: #ddfade; border: 1px solid #93c49f; }
    .aui-message.error,
    .aui-message.removed { background-color: #ffe7e7; border: 1px solid #df9898; color: #000; }

    .call-to-action-table { margin: 10px 1px 1px 1px;}
    .call-to-cancel-container, .call-to-action-container { padding: 5px 20px; }
    .call-to-cancel-container { border: 1px solid #aaa; background-color: #eee; border-radius: 3px; }
    .call-to-cancel-container a.call-to-cancel-button { background-color: #eee; font-size: 14px; line-height: 1; padding: 0; margin: 0; color: #666; font-family: sans-serif;}
    .call-to-action-container { border: 1px solid #486582;  background-color: #3068A2; border-radius: 3px; padding: 4px 10px; }
    .call-to-action-container a.call-to-action-button { background-color: #3068A2; font-size: 14px; line-height: 1; padding: 0; margin: 0; color: #fff; font-weight: bold; font-family: sans-serif; }

    /** The span around the inline task checkbox image */
    .diff-inline-task-overlay {
        display: inline-block;
        text-align: center;
        height: 1.5em;
        padding: 5px 0px 1px 5px;
        margin-right: 5px;
        /** Unfortunately, the negative margin-left is stripped out in gmail */
        margin-left: -5px;
    }

            @media handheld, only screen and (max-device-width: 480px) {
        div, a, p, td, th, li, dt, dd { -webkit-text-size-adjust: auto; }
        small, small a { -webkit-text-size-adjust: 90%; }

        td[id=email-wrapper-inner] { padding: 2px !important; }
        td[id=email-content-inner] { padding: 8px !important; }
        td[id="email-wrapper-inner"][class="thin"] > table { text-align: left !important; width: 100% !important; }
        td[id=email-footer] { padding: 8px 12px !important; }
        div[class=email-indent] { margin: 8px 0px !important; }
        div[class=email-comment] { margin: 0 !important; }

        p[id=email-title-flavor] a { display: block; } /* puts the username and the action on separate lines */
        p[id=email-permalink] { padding: 4px 0 0 0 !important; }

        table[id=email-actions] td { padding-top: 0 !important; }
        table[id=email-actions] td.right { text-align: right !important; }
        table[id=email-actions] .email-list-item { display: block; margin: 1em 0 !important; word-wrap: normal !important; }
        span[class=email-list-divider] { display: none; }
    }



        </style>
    </head>
    <body style="font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 13px; width: 100%; -webkit-font-smoothing: antialiased; background-color: #f0f0f0">
        <table id="email-wrapper" width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color: #f0f0f0">
            <tbody>
                <tr valign="middle">
                    <td id="email-wrapper-inner" style="font-size: 13px; padding: 20px; text-align: center">
                        <table id="email-content" cellspacing="0" cellpadding="0" border="0" style="font-family: Arial, FreeSans, Helvetica, sans-serif; width: 100%">
                            <tbody>
                                <tr valign="top">
                                    <td id="email-content-inner" align="left" style="font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 13px; background-color: #fff; border: 1px solid #bbb; padding: 20px; text-align: left">
                                        <table id="email-title" cellpadding="0" cellspacing="0" border="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td id="email-title-avatar" rowspan="2" style="font-size: 13px; text-align: left; vertical-align: top; width: 48px; padding-right: 8px"> <img class="avatar" src="cid:avatar_acf9e33a752338c5b13b322c0539cacd" border="0" height="48" width="48" style="-ms-interpolation-mode: bicubic; border-radius: 3px" /> </td>
                                                    <td valign="top" style="font-size: 13px">
                                                        <div id="email-title-flavor" class="email-metadata" style="margin: 0; padding: 0 0 4px 0; color: #505050">
                                                            <a href="    https://cwiki.apache.org/confluence/display/~dkulp " style="color:#326ca6;text-decoration:none;; color: #326ca6; text-decoration: none">Daniel Kulp</a> removed the page:
                                                        </div> </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" style="font-size: 13px"> <h2 id="email-title-heading" style="font-size: 16px; line-height: 20px; min-height: 20px; margin: 0; padding: 0"> <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/Getting+Started+3.x" style="color: #326ca6; text-decoration: none"> <img class="icon" src="cid:page-icon" alt="" style="border: 0; padding: 0 5px 0 0; text-align: left; vertical-align: middle" /> <strong style="font-size:16px;line-height:20px;vertical-align:top;">Getting Started 3.x</strong> </a> </h2> </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <div class="email-indent" style="margin: 8px 0 16px 0">
                                            <div class="email-page removed">
                                                <h2 id="GettingStarted3.x-Introduction.3">Introduction</h2>
                                                <p style="font-size: 13px">This document describes how to install and configure ActiveMQ 3.x for both Unix and Windows' platforms. </p>
                                                <h2 id="GettingStarted3.x-DocumentOrganization.3">Document Organization</h2>
                                                <p style="font-size: 13px">The Getting Started Guide for ActiveMQ 3.x document contains the following sections:</p>
                                                <ul>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Introduction</a> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Document Organization</a> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Pre-Installation Requirements</a> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Installation Procedure for Windows</a>
                                                        <ul>
                                                            <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Windows Binary Installation</a> </li>
                                                            <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Windows Source Installation</a> </li>
                                                            <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Windows Developers' Release</a> </li>
                                                        </ul> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Installation Procedure for Unix</a>
                                                        <ul>
                                                            <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Unix Binary Installation</a> </li>
                                                            <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Unix Source Installation</a> </li>
                                                            <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Unix Developers' Release</a> </li>
                                                        </ul> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Starting ActiveMQ</a> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Stopping ActiveMQ</a> </li>
                                                    <li style="font-size: 13px"> <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Configuring ActiveMQ</a> </li>
                                                </ul>
                                                <h2 id="GettingStarted3.x-Pre-InstallationRequirements.3">Pre-Installation Requirements</h2>
                                                <p style="font-size: 13px"> <strong>Hardware:</strong> </p>
                                                <ul>
                                                    <li style="font-size: 13px">33 MB of free disk space for the ActiveMQ 3.x binary distribution.</li>
                                                    <li style="font-size: 13px">18 MB of free disk space for the ActiveMQ 3.x source or developer's distributions.</li>
                                                </ul>
                                                <p style="font-size: 13px"> <strong>Operating Systems:</strong> </p>
                                                <ul>
                                                    <li style="font-size: 13px">Windows: Windows XP SP2, Windows 2000.</li>
                                                    <li style="font-size: 13px">Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any Unix platform that supports Java.</li>
                                                </ul>
                                                <p style="font-size: 13px"> <strong>Environment:</strong> </p>
                                                <ul>
                                                    <li style="font-size: 13px">Java Developer Kit (JDK) 1.4.x or greater for deployment and 1.5.x (Java 5) for compiling/building.</li>
                                                    <li style="font-size: 13px">The JAVA_HOME environment variable must be set to the directory where the JDK is installed, e.g., <code style="font-size: 13px">c:\Program Files\jsdk.1.4.2-09</code>.</li>
                                                    <li style="font-size: 13px">Maven 1.0.2 or greater (required when installing source or developer's releases).</li>
                                                    <li style="font-size: 13px"> <a href="http://cvs.apache.org/repository/geronimo-spec/jars/" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">JARs</a> that will be used must be added to the classpath.</li>
                                                </ul>
                                                <h2 id="GettingStarted3.x-InstallationProcedureforWindows.3">Installation Procedure for Windows</h2>
                                                <p style="font-size: 13px">This section of the Getting Started Guide explains how to install binary and source distributions of ActiveMQ on a Windows system. </p>
                                                <h4 id="GettingStarted3.x-WindowsBinaryInstallation.3">Windows Binary Installation</h4>
                                                <p style="font-size: 13px">This procedure explains how to download and install the binary distribution on a Windows system.</p>
                                                <ol>
                                                    <li style="font-size: 13px">From a browser, navigate to <a href="http://www.ActiveMQ.org" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">www.ActiveMQ.org</a>.</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download</a> link in the navigation pane (the left pane).</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#ActiveMQ 3.x Release</a> link under the &quot;Latest Releases&quot; section. This brings up a new page.</li>
                                                    <li style="font-size: 13px">Under the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download Here</a> section, select the desired distribution (you may have to scroll down to see the &quot;Download Here&quot; section).<br /> For a binary distribution, the filename will be similar to: <code style="font-size: 13px">activemq-x.x.x.zip</code>.</li>
                                                    <li style="font-size: 13px">Extract the files from the ZIP file into a directory of your choice.</li>
                                                    <li style="font-size: 13px">Proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Starting ActiveMQ</a> section of this document.</li>
                                                    <li style="font-size: 13px">Following start-up, go to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> section of this document.</li>
                                                </ol>
                                                <h4 id="GettingStarted3.x-WindowsSourceInstallation.3">Windows Source Installation</h4>
                                                <p style="font-size: 13px">This procedure explains how to download and install the source distribution on a Windows system. </p>
                                                <p style="font-size: 13px"> <strong>NOTE:</strong> ActiveMQ can be run on a Java 1.4.x system, however, Java 1.5 is required to compile/build ActiveMQ.</p>
                                                <ol>
                                                    <li style="font-size: 13px">From a browser, navigate to <a href="http://www.ActiveMQ.org" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">www.ActiveMQ.org</a>.</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download</a> link in the navigation pane (the left pane).</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#ActiveMQ 3.x Release</a> link under the &quot;Latest Releases&quot; section. This brings up another page.</li>
                                                    <li style="font-size: 13px">Under the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download Here</a> section, select the desired distribution (if necessary, scroll down to see the &quot;Download Here&quot; section).<br /> For a source distribution, the filename will be similar to: <code style="font-size: 13px">activemq-x.x-src.zip</code>.</li>
                                                    <li style="font-size: 13px">Extract ActiveMQ from the ZIP file into a directory of your choice.</li>
                                                    <li style="font-size: 13px"> <span class="confluence-anchor-link" id="GettingStarted3.x-WindowsSourceInstallation"></span> Build ActiveMQ using Maven 1.0.2 or greater and Java 1.5.
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
The recommended method of building ActiveMQ is the following:
cd [activemq_install_dir]
  where [activemq_install_dir] is the directory in which ActiveMQ was installed.
maven clean test

If the above build fails on some tests, type the following:
cd [activemq_install_dir]
maven -Dmaven.test.skip=true
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">If you prefer to use an IDE, then you can auto-generate the IDE's project file using maven plugins:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
maven eclipse

or

maven idea
</pre>
                                                            </div>
                                                        </div> Feel free to use any other applicable IDE. Please refer to the <a href="http://maven.apache.org/reference/plugins/plugins.html" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">plugin reference</a> for more details.</li>
                                                    <li style="font-size: 13px">Start ActiveMQ from the target directory, for example:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
 cd [activemq_install_dir]\activemq-assembly\target\activemq-x.x-SNAPSHOT\
 bin\activemq
</pre>
                                                            </div>
                                                        </div> <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.</li>
                                                    <li style="font-size: 13px">Proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> section.</li>
                                                </ol>
                                                <p style="font-size: 13px"> <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>
                                                <div class="aui-message problem shadowed information-macro" style="margin: 1em 0; padding: 8px">
                                                    <p class="title" style="font-size: 13px">Warning</p>
                                                    <span class="aui-icon icon-problem">Icon</span>
                                                    <div class="message-content">
                                                        <p style="font-size: 13px">If you are building ActiveMQ 3.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>
                                                    </div>
                                                </div>
                                                <h4 id="GettingStarted3.x-WindowsDeveloper'sRelease.3">Windows Developer's Release</h4>
                                                <p style="font-size: 13px">This procedure explains how to download and install the latest developer's snapshot. </p>
                                                <p style="font-size: 13px"> <strong>NOTE:</strong> ActiveMQ can be run on a Java 1.4.x system, however, Java 1.5 is required to compile/build ActiveMQ.</p>
                                                <ol>
                                                    <li style="font-size: 13px">From a browser, navigate to <a href="http://www.ActiveMQ.org" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">www.ActiveMQ.org</a>.</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download</a> link in the navigation pane (the left pane).</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Current development SNAPSHOT release</a> link.</li>
                                                    <li style="font-size: 13px">Select the version of ActiveMQ to download (if necessary, scroll down to see the ActiveMQ snapshots).</li>
                                                    <li style="font-size: 13px">Extract the files from the ZIP file into a directory of your choice.</li>
                                                    <li style="font-size: 13px">If a binary snapshot was downloaded, proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Starting ActiveMQ</a> section of this document.<br /> If a source snapshot was downloaded, perform step 6 and step 7 of the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Windows Source Installation</a> procedure.</li>
                                                    <li style="font-size: 13px">Following start-up, proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> section.</li>
                                                </ol>
                                                <h2 id="GettingStarted3.x-InstallationProcedureforUnix.3">Installation Procedure for Unix</h2>
                                                <h4 id="GettingStarted3.x-UnixBinaryInstallationUnixBinaryInstallation.3"> <span class="confluence-anchor-link" id="GettingStarted3.x-UnixBinaryInstallation"></span> Unix Binary Installation</h4>
                                                <p style="font-size: 13px">This procedure explains how to download and install the binary distribution on a Unix system.</p>
                                                <ol>
                                                    <li style="font-size: 13px">Download the activemq gzip file to the Unix machine, using either a browser or a tool, i.e., wget, scp, ftp, etc.
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
If the Unix machine has a browser:

a. Navigate to www.ActiveMQ.org.
b. Click the &quot;Download&quot; link in the navigation pane (the left pane).
c. Click the &quot;ActiveMQ 3.x Release&quot; link under the &amp;quot;Latest Releases&amp;quot; section. This brings up a new page.
d. Under the &quot;Download Here&quot; section, select the desired distribution (if necessary,
scroll down to see the &quot;Download Here&quot; section). For a binary Unix distribution, the filename
will be similar to: activemq-x.x.x.tar.gz.

OR

If the Unix machine does NOT have a browser, tools such as wget, scp, or ftp can be used to download the ActiveMQ distribution.

It is beyond the scope of this document to explain the use of those tools. For convenience an example is provided below using a Windows machine (that has a browser) and a Unix machine with &amp;quot;wget&amp;quot; installed on it.

*NOTE:* There are several alternative ways to perform this type of installation.

a. Obtain the link to the ActiveMQ distribution file. On the Windows machine with a browser, navigate to www.ActiveMQ.org.
b. Click the &quot;Download&quot; link in the left navigation pane.
c. Click the &quot;ActiveMQ 3.x Release&quot; link under the &amp;quot;Latest Releases&amp;quot; section. This brings up a new page.
d. Under the &quot;Download Here&quot; section, roll-over the desired distribution (if necessary, scroll
down to see the &quot;Download Here&quot; section). For a binary Unix distribution the filename will be
similar to: activemq-x.x.x.tar.gz.
e. Right-click on the distribution name and Copy Shortcut
f. On the Unix machine, change to the directory in which ActiveMQ will be installed, e.g., /usr/local.
f. Download the ActiveMQ distribution to the Unix machine using the &quot;wget&quot; tool. For example, type &quot;wget&quot; followed by the saved shortcut:

      wget http://cvs.apache.org/repository/incubator-activemq/distributions/activemq-x.x.x.tar.gz
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">Extract the files from the gzip file into a directory of your choice. For example:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
tar zxvf activemq-x.x.x.tar.gz
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">If the <code style="font-size: 13px">ActiveMQ</code> start-up script is not executable, change its permisssions. The <code style="font-size: 13px">ActiveMQ</code> script is located in the <code style="font-size: 13px">bin</code> directory. For example:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
cd [activemq_install_dir]/bin
  where [activemq_install_dir] is the directory in which ActiveMQ was installed.
chmod 755 activemq
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">Proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Starting ActiveMQ</a> section of this document.</li>
                                                    <li style="font-size: 13px">Following start-up, go to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> section.</li>
                                                </ol>
                                                <h4 id="GettingStarted3.x-UnixSourceInstallation.3">Unix Source Installation</h4>
                                                <p style="font-size: 13px">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 <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Unix Binary Installation</a> section for details on how to install ActiveMQ without a browser. </p>
                                                <p style="font-size: 13px"> <strong>NOTE:</strong> ActiveMQ can be run on a Java 1.4.x system, however, Java 1.5 is required to compile/build ActiveMQ.</p>
                                                <ol>
                                                    <li style="font-size: 13px">From a browser, navigate to <a href="http://www.ActiveMQ.org" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">www.ActiveMQ.org</a>.</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download</a> link in the navigation pane (the left pane).</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#ActiveMQ 3.x Release</a> link under the &quot;Latest Releases&quot; section. This brings up a new page.</li>
                                                    <li style="font-size: 13px">Under the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download Here</a> section, select the desired distribution (if necessary, scroll down to see the &quot;Download Here&quot; section).<br /> For a source distribution, the filename will be similar to: <code style="font-size: 13px">activemq-x.x-src.tar.gz</code>.</li>
                                                    <li style="font-size: 13px">Extract the files from the ZIP file into a directory of your choice. For example:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
tar zxvf activemq.x.x-src.tar.gz
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">Build ActiveMQ using Maven 1.0.2 or greater and Java 5:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
The preferred method of building ActiveMQ is the following:
cd [activemq_install_dir]
  where [activemq_install_dir] is the directory in which ActiveMQ was installed.
maven clean test

If the above build fails on some tests, do the following:
cd [activemq_install_dir]
maven m:clean
maven -Dmaven.test.skip=true
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">If you prefer to use an IDE then you can auto-generate the IDE's project file using maven plugins:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
maven eclipse

or

maven idea
</pre>
                                                            </div>
                                                        </div> Feel free to use any other applicable IDE. Please refer to the <a href="http://maven.apache.org/reference/plugins/plugins.html" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">plugin reference</a> for more details.<br /> <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. </li>
                                                    <li style="font-size: 13px">Proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Starting ActiveMQ</a> section of this document.</li>
                                                    <li style="font-size: 13px">Proceed to <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> section.</li>
                                                </ol>
                                                <h4 id="GettingStarted3.x-UnixDeveloper'sRelease.3">Unix Developer's Release</h4>
                                                <p style="font-size: 13px">This procedure explains how to download and install the latest developer's snapshot. </p>
                                                <p style="font-size: 13px"> <strong>NOTE:</strong> ActiveMQ can be run on a Java 1.4.x system, however, Java 5 is required to compile/build ActiveMQ.</p>
                                                <ol>
                                                    <li style="font-size: 13px">From a browser, navigate to <a href="http://www.ActiveMQ.org" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">www.ActiveMQ.org</a>.</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Download</a> link in the navigation pane (the left pane).</li>
                                                    <li style="font-size: 13px">Click the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Current development SNAPSHOT release</a> link.</li>
                                                    <li style="font-size: 13px">Select the version of ActiveMQ to download (you may have to scroll down to see the ActiveMQ snapshots). The filename will be similar to: <code style="font-size: 13px">activemq-x.x.x-tar.gz</code> or <code style="font-size: 13px">activemq-x.x.x-src.tar.gz</code>.</li>
                                                    <li style="font-size: 13px">Extract the files from the gzip file into a directory of your choice. For example:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
For a binary developer's snapshot:
  tar zxvf activemq-x.x.x.tar.gz

For a source developer's snapshot:
  tar zxvf activemq-x.x.x-src.tar.gz
</pre>
                                                            </div>
                                                        </div> </li>
                                                    <li style="font-size: 13px">If a binary snapshot was downloaded, to make it executable, the <code style="font-size: 13px">ActiveMQ</code> script may need its permissions changed:
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
cd [activemq_install_dir]/bin
  where [activemq_install_dir] is the directory in which ActiveMQ was installed.
chmod 755 activemq
</pre>
                                                            </div>
                                                        </div> #For a binary snapshot, proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Starting ActiveMQ</a> section of this document.<br /> #If a source snapshot was downloaded perform steps 6 - 8 of the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Unix Source Installation</a> procedure.</li>
                                                    <li style="font-size: 13px">Proceed to the <a class="unresolved" href="#" style="color: #326ca6; text-decoration: none">#Testing the Installation</a> section.</li>
                                                </ol>
                                                <h2 id="GettingStarted3.x-StartingActiveMQStartingActiveMQ.3"> <span class="confluence-anchor-link" id="GettingStarted3.x-StartingActiveMQ"></span> Starting ActiveMQ</h2>
                                                <h4 id="GettingStarted3.x-OnWindows:.3">On Windows:</h4>
                                                <p style="font-size: 13px">From a console window, change to the installation directory and run <code style="font-size: 13px">ActiveMQ</code>:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
cd [activemq_install_dir]
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px">where <code style="font-size: 13px">activemq_install_dir</code> is the directory in which ActiveMQ was installed, e.g., <code style="font-size: 13px">c:\Program Files\ActiveMQ-3.x</code>. <br class="atl-forced-newline" /> Then type:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
bin\activemq
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px"> <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>
                                                <h4 id="GettingStarted3.x-OnUnix:.3">On Unix:</h4>
                                                <p style="font-size: 13px">From a command shell, change to the installation directory and run <code style="font-size: 13px">ActiveMQ</code>:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
cd [activemq_install_dir]
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px">where <code style="font-size: 13px">activemq_install_dir</code> is the directory in which ActiveMQ was installed, e.g., <code style="font-size: 13px">/usr/local/activemq-3.x</code>. <br class="atl-forced-newline" /> Then type:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
bin/activemq

OR

bin/activemq &gt; /tmp/smlog  2&gt;&amp;1 &amp;;
Note: /tmp/smlog may be changed to another file name.
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px"> <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>
                                                <div class="aui-message problem shadowed information-macro" style="margin: 1em 0; padding: 8px">
                                                    <p class="title" style="font-size: 13px">Warning</p>
                                                    <span class="aui-icon icon-problem">Icon</span>
                                                    <div class="message-content">
                                                        <p style="font-size: 13px">Do NOT close the console or shell in which ActiveMQ was started, as that will terminate ActiveMQ (unless ActiveMQ was started with nohup).</p>
                                                        <div class="code panel pdl" style="border-width: 1px;">
                                                            <div class="codeContent panelContent pdl">
                                                                <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
nohup bin/activemq &gt; /tmp/smlog 2&gt;&amp;1 &amp;
</pre>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <h2 id="GettingStarted3.x-TestingtheInstallationTestingtheInstallation.3"> <span class="confluence-anchor-link" id="GettingStarted3.x-TestingtheInstallation"></span> Testing the Installation</h2>
                                                <p style="font-size: 13px">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>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
INFO  ActiveMQ JMS Message Broker (ID:apple-s-Computer.local-51222-1140729837569-0:0) has started
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px"> <br class="atl-forced-newline" /> ActiveMQ's default port is 61616. From another window run netstat and search for port 61616.</p>
                                                <p style="font-size: 13px">From a Windows console, type:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
netstat -an|find &amp;quot;61616&amp;quot;
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px"> <strong>OR</strong> </p>
                                                <p style="font-size: 13px">From a Unix command shell, type:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
netstat -an|grep 61616
</pre>
                                                    </div>
                                                </div>
                                                <h2 id="GettingStarted3.x-StoppingActiveMQ.3">Stopping ActiveMQ</h2>
                                                <p style="font-size: 13px">For both Windows and Unix installations, terminate ActiveMQ by typing &quot;CTRL-C&quot; in the console or command shell in which it is running.</p>
                                                <p style="font-size: 13px">If ActiveMQ was started in the background on Unix, the process can be killed, with the following:</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">
ps -ef|grep activemq
kill [PID]
  where [PID] is the process id of the ActiveMQ process.
</pre>
                                                    </div>
                                                </div>
                                                <h2 id="GettingStarted3.x-ConfiguringActiveMQ.3">Configuring ActiveMQ</h2>
                                                <p style="font-size: 13px">The ActiveMQ broker should now run. You can configure the broker by specifying an <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/Xml+Configuration" style="color: #326ca6; text-decoration: none">Xml Configuration</a> file as a parameter to the <em>activemq</em> command.</p>
                                                <p style="font-size: 13px">See the <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/Initial+Configuration" style="color: #326ca6; text-decoration: none">Initial Configuration</a> for details of which jars you need to add to your classpath to start using ActiveMQ in your Java code</p>
                                                <p style="font-size: 13px">If you want to use JNDI to connect to your JMS provider then please view the <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/JNDI+Support" style="color: #326ca6; text-decoration: none">JNDI Support</a>. If you are a Spring user you should read about <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/Spring+Support" style="color: #326ca6; text-decoration: none">Spring Support</a> </p>
                                                <p style="font-size: 13px">After the installation, ActiveMQ is running with a basic configuration. For details on configuring options, please see refer to the <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/Configuration" style="color: #326ca6; text-decoration: none">Configuration</a> section.</p>
                                                <h2 id="GettingStarted3.x-AdditionalResources.3">Additional Resources</h2>
                                                <p style="font-size: 13px">If you are new to using ActiveMQ, running the <a href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/Examples" style="color: #326ca6; text-decoration: none">Examples</a> is a good next step to learn more about ActiveMQ.</p>
                                            </div>
                                        </div>
                                        <table id="email-actions" class="email-metadata" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-top: 1px solid #bbb; color: #505050; margin: 8px 0 0 0; padding: 0; color: #505050">
                                            <tbody>
                                                <tr>
                                                    <td class="left" valign="top" style="font-size: 13px; padding-top: 8px; max-width: 45%; text-align: left"> </td>
                                                    <td class="right" width="50%" valign="top" style="font-size: 13px; padding-top: 8px; text-align: right"> <span class="email-list-item"><a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=ACTIVEMQ" style="color: #326ca6; text-decoration: none">Stop watching space</a> </span> <span class="email-list-divider" style="color: #505050; padding: 0 0.350em">&middot;</span> <span class="email-list-item"><a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action" style="color: #326ca6; text-decoration: none">Manage Notifications</a> </span> </td>
                                                </tr>
                                            </tbody>
                                        </table> </td>
                                </tr>
                            </tbody>
                        </table> </td>
                </tr>
                <tr>
                    <td id="email-footer" align="center" style="font-size: 13px; padding: 0 16px 32px 16px; margin: 0"> <small style="font-size: 11px"> This message was sent by <a class="email-footer-link" style="color:#505050;font-size:11px;text-decoration:none;; color: #326ca6; text-decoration: none; color: #505050; font-size: 11px" href="http://www.atlassian.com/software/confluence">Atlassian Confluence</a> 5.0.3, <a class="email-footer-link" style="color:#505050;font-size:11px;text-decoration:none;; color: #326ca6; text-decoration: none; color: #505050; font-size: 11px" href="http://www.atlassian.com/software/confluence/overview/team-collaboration-software?utm_source=email-footer">Team Collaboration Software</a> </small> </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>
Mime
View raw message