ActiveMQ Artemis is a multi protocol broker. It will inspect the initial handshake of clients to determine what protocol to use.
All you need to do is to connect a client into ActiveMQ's configured port and you should be able connect.
To run this example simply run the command **mvn verify -Pexample**, execute the compile.sh script and start the executable called ./hello
# 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 [qpid docs](http://qpid.apache.org/releases/qpid-0.30/programming/book/) for more information.
# There is a list of [packages](http://qpid.apache.org/packages.html) you can install as well.
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.
This example is based on [qpid's hello world example](http://qpid.apache.org/releases/qpid-0.30/messaging-api/cpp/examples/hello_world.cpp.html).
1. qpid-cpp-client-devel installed.
Assuming you are on Linux Fedora, you will need to run this following command
yum install qpid-cpp-client-devel
Consult the [qpid documentation](http://qpid.apache.org/releases/qpid-0.30/programming/book/), and [the required](http://qpid.apache.org/packages.html) packages for information on other platoforms.
std::string connectionOptions = argc > 3 ? argv[3] : "{protocol:amqp1.0}"; // Look at the [docs](http://qpid.apache.org/releases/qpid-0.30/programming/book/connections.html#connection-options) for more options