0

I am initializing an activeMQ embedded broker as follows:

BrokerService broker = new BrokerService();
broker.addConnector("http://localhost:8161");
broker.start();

Then I perform some posts of Json Strings to the following URL to use the REST capabilities of ActiveMQ:

"http://localhost:8161/api/message/EventQueue?type=queue"

I am getting the following exception:

com.thoughtworks.xstream.io.StreamException:  : only whitespace content allowed before start tag and not s (position: START_DOCUMENT seen s... @1:1)

I think maybe some configuration is required for the embedded broker to work with Json, but I could not find information about that in the activeMQ help.

Many thanks!

Marcelo Flores
  • 114
  • 1
  • 13
  • You have configured a TCP connector in this code and are sending HTTP to it, not going to work. – Tim Bish Jan 08 '14 at 11:15
  • Sorry for the typo, I pasted the wrong code, but I am using http in my actual code. I edited already the question with my actual code. So any thoughts? – Marcelo Flores Jan 09 '14 at 09:55

0 Answers0