How to send and receive messages over HTTP REST with A-MQ ?

Solution Verified - Updated -

Issue

  • We're trying to send/receive messages over HTTP using RESTful semantics with curl and wget, but we keep getting 404. We suspect the resource URI/path is wrong, but we're unable to find documentation detailing the correct path.
$ wget --http-user=fuse --http-password=admin --post-data="body=testBody" http://localhost:8181/api/message/tq?type=queue
--2015-09-15 22:26:18--  http://localhost:8181/api/message/tq?type=queue
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8181... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-09-15 22:26:18 ERROR 404: Not Found.
  • We tried difference variations of the URI, but still getting 404:
$ wget --http-user=fuse --http-password=admin --post-data="body=testBody" http://localhost:8181/message/tq?type=queue

wget --http-user=fuse --http-password=admin --post-data="body=testBody" http://localhost:8181/tq?type=queue

wget --http-user=fuse --http-password=admin --post-data="body=testBody" http://localhost:8181/api/tq?type=queue

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Red Hat JBoss A-MQ
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In