[ 
https://issues.apache.org/jira/browse/CAMEL-11881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16192205#comment-16192205
 ] 

Hector Veiga commented on CAMEL-11881:
--------------------------------------

I have found three of them and they only apply to queues:
* x-max-length
* x-message-ttl
* x-expires

I think we should do the check in this line: 
https://github.com/apache/camel/blob/a558f54ec070e400167af366d3e973f806634760/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQDeclareSupport.java#L63

[~davsclaus] what do you think?

> Queue/Exchange parameters need to be numeric when declaring in RabbitMQ
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-11881
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11881
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-rabbitmq
>            Reporter: Hector Veiga
>
>  I am having a small issue with camel-rabbitmq component. I am trying to add 
> a ttl to the declaration of my queue by adding the option 
> arg.queue.x-message-ttl=5000 to the URI. That seems fine, however it seems 
> camel parses 5000 as a String instead of an Integer and therefore I am 
> getting an error when doing the declaration: 
> reply-code=406, reply-text=PRECONDITION_FAILED - invalid arg 'x-message-ttl' 
> for queue 'XXXX' in vhost '/': {unacceptable_type,longstr}, class-id=50, 
> method-id=10)
> We should add some special code to turn those values from String to Long 
> before declaring. I will compile the list, add it here and work on a patch.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to