<p>To run this example simply run the command <literal>mvn verify -Pexample</literal>, execute the compile.sh script and start the executable called ./hello</p>
# first make sure you have the dependencies you need to compile and run the client
# You will have to adapt this step according to your platform. Consult the <ahref="http://qpid.apache.org/releases/qpid-0.30/programming/book/">qpid docs</a> for more information.
# There is a list of <ahref="http://qpid.apache.org/packages.html">packages</a> you can install as well.
<p>You don't need to do anything special to configure the ActiveMQ Artemis server to accept AMQP clients. </p>
<p>Just for the sake of documentation though we are setting the port of ActiveMQ Artemis on this example as 5672 which is the port qpid have by default. </p>
<p> We are using qpid cpp client on this example. There are several libraries you may chose from for AMQP. We have ellect one that we consider simple enough for users.</p>
<p> This example is based on <ahref='http://qpid.apache.org/releases/qpid-0.30/messaging-api/cpp/examples/hello_world.cpp.html'>qpid's hello world example</a>.</p>
<ol>
<li>qpid-cpp-client-devel installed.</li>
<p>Assuming you are on Linux Fedora, you will need to run this following command</p>
<preclass="prettyprint">
<code>yum install qpid-cpp-client-devel</code>
</pre>
<p>Consult the <ahref="http://qpid.apache.org/releases/qpid-0.30/programming/book/">qpid documentation</a>, and <ahref="http://qpid.apache.org/packages.html">the required </a> packages for information on other platoforms.</p>
std::string connectionOptions = argc > 3 ? argv[3] : "{protocol:amqp1.0}"; // Look at the <ahref="http://qpid.apache.org/releases/qpid-0.30/programming/book/connections.html#connection-options">docs</a> for more options