[rabbitmq-discuss] Using x-max-length custom header with STOMP adapter

Simon MacMullen simon at rabbitmq.com
Tue Jan 14 17:36:11 GMT 2014


On 14/01/14 17:23, Matthew Holt wrote:
> PRECONDITION_FAILED - inequivalent arg 'x-max-length'for queue 'test' in
> vhost '/': received none but current is the value '50' of type 'long'
> Connection closed by foreign host.

I don't think you can specify queue arguments in the STOMP plugin, sorry.

You might find that setting the queue's maximum length by policy lets 
you do what you want to do:

# rabbitmqctl set_policy --apply-to queues test-max-length '^test$' 
'{"max-length": 50}'

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list