[rabbitmq-discuss] New Open source AMQP implementation, problems with integrating using different langauges
finn colman
finncolman at yahoo.co.nz
Tue Feb 8 02:08:24 GMT 2011
I have found the solution to my problem.
I set found out that the flags were the content-type and content-encoding. When
I set these properties in the python code then I could consumer the message on
the PHP side without an exception being thrown.
----- Original Message ----
From: finn colman <finncolman at yahoo.co.nz>
To: rabbitmq-discuss at lists.rabbitmq.com
Sent: Tue, 8 February, 2011 12:17:08 PM
Subject: New Open source AMQP implementation, problems with integrating using
different langauges
Hi there.
I have a python program that talks to a rabbit MQ server using its own library.
On my end I am running Robin's AMQP PHP
library,https://github.com/BraveSirRobin/amqphp to connect to the Rabbit MQ
server. I can submit a message to the queue and the python side can read it, but
if the python side submits a message to the queue and the PHP side tries to
consume it I am getting an Exception thrown from inside amqp.wire.php:
"Unexpected message property flags".
This is happening because the strlen($binFlags) is evaluating to 0 in this case.
If I run it using PHP submitted messages then it correctly evaliuates to a
length of 16.
The binary flags is 1100000000000000(49152) for a PHP suibmitted message read
off the queue, but it is 0 for the message read off the queue that was put there
by python.
What is causing this? Also what do these flags really represent.
As a temporary work around I have managed to get the code to read the message by
simply commenting out these three lines of code that check this binary flags
length.
Thanks.
More information about the rabbitmq-discuss
mailing list