I followed the examples of the activemq site to start an embedded broker:
BrokerService broker = new BrokerService();
broker.addConnector("tcp://localhost:8161");
broker.start();
Then I perform some posts to the following URL to use the REST capabilities of ActiveMQ:
"http://localhost:8161/api/message/EventQueue?type=queue"
When I send the post using a standalone broker it all works fine, but when I use the embedded broker it hangs the process.
I am using active mq version 5.8.0
What I am missing?
Thanks