[rabbitmq-discuss] reg rabbithub how to

Michael Bridgen mikeb at rabbitmq.com
Wed Jul 21 10:53:57 BST 2010


[ops, sending to list as well]

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

At the minute RabbitHub supports only the default VHost "/".  There's
minor technical trickiness in addressing other vhosts, but nothing
insuperable.

Putting that aside, it's worth looking at the test scripts, which
contain examples of pretty much everything.

In this case, it's
http://github.com/tonyg/rabbithub/blob/master/test/send_x_foo.sh
(with appropriate modifications, e.g., to the port number).

It's also worth reading the PuSH spec, if you've not -- it's admirably
to the point.

> On Wed, Jul 21, 2010 at 2:57 PM, Akhil Kodali <akhil.kodali at gmail.com 
> <mailto:akhil.kodali at gmail.com>> wrote:
> 
>     Hi,
> 
>     Yup, I can see it.
> 
>     I meant I needed any HTTP way of accessing queues and exchanges.
>     Is there anything that I should be aware of while using it?
> 
> 
>     Thank you
>     Akhil Kodali
> 
> 
> 
> 
>     On Wed, Jul 21, 2010 at 2:43 PM, Michael Bridgen <mikeb at rabbitmq.com
>     <mailto:mikeb at rabbitmq.com>> wrote:
> 
>             I compiled and installed rabbithub as a rabbitmq plugin from
>             github.
> 
>             What do I do next? I mean how do I begin using it.
> 
> 
>         The rabbitmqctl status output you posted suggests you got it
>         running OK, but for the record:  If you've successfully compiled
>         it, you can either symlink in into rabbitmq-server/plugins/ or
>         drop the rabbithub.ez in the same place.  RabbitMQ should then
>         tell you the RabbitHub has started up during boot.
> 
>         It will be running under control of RabbitMochiweb at
>         http://localhost:55672/rabbithub/
> 
>         In general you'll need to address endpoints, e.g.,
>         http://localhost:55672/rabbithub/endpoint/x/amq.direct
> 
> 
>             I am trying to use it primarily as a REST way for consuming
>             from queues.
> 
> 
>         RabbitHub implements PubSubHubbub (a.k.a., PuSH), which isn't
>         RESTful (and shouldn't be).  However, it *is* a fairly idiomatic
>         use of HTTP.
> 
>         Hope this helps; have fun!
> 
>         Michael
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss




More information about the rabbitmq-discuss mailing list