[rabbitmq-discuss] php talking to ruby

Pieter de Zwart pdezwart at rubiconproject.com
Fri Jan 21 17:54:44 GMT 2011


Your problem isnt the two talking together. It is getting them to agree on a
queue definition. I still don't understand why you are trying to declare the
queue in PHP. If PHP is the publisher, then remove the queue definition
portion and see how it runs. If you need the queue definition, I would
suggest deleting the queue entirely, and then let PHP define the queue
first, and run Ruby afterwards.

Pieter


On 1/21/11 8:07 AM, "Robin Wood" <robin at digininja.org> wrote:

> I've just tried with your Ruby and my php from gist and get the following
PHP
> Fatal error:  Uncaught exception 'AMQPQueueException' with message
'Server
> channel error: 406, message: PRECONDITION_FAILED - parameters
for queue
> 'queue1' in vhost '/' not equivalent' in
/home/robin/comms/gist.php:13
Stack
> trace:
#0 /home/robin/comms/gist.php(13): AMQPQueue->declare('queue1')
#1
> {main}
  thrown in /home/robin/comms/gist.php on line 13

which means the
> default connection settings in php are different to
the ones in Ruby. Are you
> able to get the two talking and if so how
hard is it to get it working in the
> other direction?

Robin


2011/1/21 Jakub Šťastný <stastny at 101ideas.cz>:
>
> Robin,
> It's easy to make Ruby publish in text/plain:
> https://gist.github.com/789576
> Also, as you can see from the example, Ruby
> doesn't have any problems with
> receiving messages in text/plain whatsoever.
> I'm going to add this
> functionality to the client, because this sounds like
> a useful thing to
> have. If you'll have any problems which should be fixed on
> the Ruby part,
> I'll be more than happy to do so.
> Jakub
>
> http://www.flickr.com/photos/jakub-stastny
> http://twitter.com/botanicus
>
> _______________________________________________
> rabbitmq-discuss mailing
> list
> rabbitmq-discuss at lists.rabbitmq.com
>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
_____
> __________________________________________
rabbitmq-discuss mailing
> list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/ma
> ilman/listinfo/rabbitmq-discuss




More information about the rabbitmq-discuss mailing list