[rabbitmq-discuss] reg rabbithub how to

Tony Garnock-Jones tonyg at rabbitmq.com
Wed Jul 21 10:54:52 BST 2010


Akhil Kodali wrote:
> How do I push a message "Hello World" to a direct exchange "teste" with
> the routing key "testr" on vhost "/test"?

There is no support for vhosts other than "/" at present. The rest, though:

curl -d "Hello World" http://yourhost/rabbithub/endpoint/x/teste?hub.topic=testr

In general, exchanges/queues map to PSHB hubs, and routing keys map to PSHB topics.

You can also get documentation on available options by visiting an endpoint URL
in your browser: http://yourhost/rabbithub/endpoint/x/teste. (A live example is
http://dev.rabbitmq.com/rabbithub/endpoint/x/amq.direct)

Cheers,
  Tony



More information about the rabbitmq-discuss mailing list