activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AMQBeginner <>
Subject Active MQ REST API - problems GET two messages with curl
Date Tue, 13 Oct 2009 12:19:27 GMT


at the moment i am focusing on the ActiveMQ API which is up to now hardly

1.) At first I start the Active MQ Broker. 

2.) Switching to http://localhost:8161/demo/ shows me the demo 

which means the Webdemo is activated. 

3.) Next I created a new Queue named "TestQueue" via the AdminConsole of
Active MQ.

4.) To put a message in this Queue I start curl:

curl -i -d destination=TestQueue -d type=queue -d timeout=100 -d body=test

Switching to the AdminConsole confirms that the message is delivered

6.) Via the Admin Console I add another message

7.) Now I get the first message out of the Queue with curl:

curl --connect-timeout 5 --max-time 5

The Output shows me the body of my first Message.

8.) I run again the curl Command to get the second message

But now I get a timeout. But switching to the Adminconsole shows me the
current numer of consumers of the Queue "TestQueue" is 2

So how can I GET two Messages via the REST-API with CURL?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message