On 13/05/2019 7:35 am, Jose Alberto Fernandez Parejo wrote:
We are using rabbitmq broker and qpid-cpp-1.39.0 API to send/receive messages to/from broker with AMQP1.0Our rabbitmq broker provider has several queues with 1 message maximum queue size. We are only setting the parameter {link:{durable:true}} when create the receiver.
(If it is a queue, you probably don't want/need that. It does not affect the durability of the queue.)
And the following error is returned from the broker: Session ended by peer with amqp:precondition-failed: PRECONDITION_FAILED - inequivalent arg 'x-max-length' for queue 'queue_name ' : received none but current is the value '1' of type 'long' Is there any way to set the x-max-length parameters or other equivalent parameter to set the maximun number of messages in the queue? Note that we are using AMQP1.0.
There is no standard mechanism to send arbitrary configuration parameters in the attaching of a link over AMQP 1.0, similar to the old pre1.0 queue-declare.
You can request certain (extensible) 'capabilities', but these are strings (well, symbols strictly) rather than key-value pairs.
It sounds like this is an issue with the rabbitmq AMQP 1.0 adapter for such queues. Have you asked about it on the rabbitmq list? It may be there is some way to configure things. Or they may be able to tel you of what you need to include in the AMQP 1.0 attach request (in which case we can determine the configuration needed to issue that with the qpid-cpp client).
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
