Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  python hello world

Guest
Posted: Sun May 04, 2008 9:44 pm Reply with quote
Guest
Hi
I have rabbitmq-server 1.3 installed and running, and python qpid installed.
Can you give a very basic example how to set and get from a queue? How many queues does rabbitmq-start?

thanks

Post received from mailinglist
Guest
Posted: Mon May 05, 2008 6:51 am Reply with quote
Guest
Hi Mark,
tonyg
Posted: Tue May 06, 2008 11:30 am Reply with quote
User Joined: 07 Nov 2006 Posts: 199
Hi Mark,

Lynton's kindly sent his example program. You might also be interested
in exploring Barry Pedersen's Python AMQP client,
http://barryp.org/software/py-amqplib/, which has a few example programs
that come with it, notably

http://hg.barryp.org/py-amqplib/file/tip/demo/demo_receive.py and
http://hg.barryp.org/py-amqplib/file/tip/demo/demo_send.py

With regard to your other question, RabbitMQ by default doesn't ship
with *any* queues preconfigured. You need to create them from your
applications using queueDeclare() - for instance, from Barry's Python
AMQP library documentation,

ch.queue_declare('queue name')

Barry's written up a nice overview document that's available at
http://hg.barryp.org/py-amqplib/raw-file/tip/docs/overview.txt.

Regards,
Tony



mark wrote:
> Hi
> I have rabbitmq-server 1.3 installed and running, and python qpid installed.
> Can you give a very basic example how to set and get from a queue? How
> many queues does rabbitmq-start?
>
> thanks
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss@lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


--
[][][] Tony Garnock-Jones | Mob: +44 (0)7905 974 211
[][] LShift Ltd | Tel: +44 (0)20 7729 7060
[] [] http://www.lshift.net/ | Email: tonyg@lshift.net

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message MSN Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum