While not using the same library here you have the official tutorials ported to PHP
https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/php The problem in your code is that you declare queues with different options. So as one reply say, if you declare queue A as durable, then every other declaration of that queue must be durable. The same for the exclusive flag. Also you don't need to redeclare a queue to publish messages to it. As an RPC server you assume that the address sent in the 'reply_to' property is already present. I think is the responsibility of the RpcClient to make sure the queue where it is waiting for replies exists already. Regards, Alvaro And you can indeed do RPC over RabbitMQ by using different connections. On Wed, Jun 20, 2012 at 8:03 PM, Denis <[email protected]> wrote: > Hello guys. > > I'm trying to build RPC using PHP, here is my description of problem: > http://stackoverflow.com/**questions/11104004/rabbitmq-** > rpc-exclusive-queues-locking-**php<http://stackoverflow.com/questions/11104004/rabbitmq-rpc-exclusive-queues-locking-php> > > The main issue I suspect is that Client.php and Server.php try to connect > to RabbitMQ server using different connections, which leads to inability of > using EXCLUSIVE queue (that is declared in CLient.php) from Server.php > > Can u give me a way I can dig to? I'm out of ideas ... > > _______________________________________________ > rabbitmq-discuss mailing list > [email protected] > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss > > -- You received this message because you are subscribed to the Google Groups "rabbitmq-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rabbitmq-discuss?hl=en.
