Skip to content

Additional queue argument 'x-message-ttl' doesn't work #1

@fegbers

Description

@fegbers

Through the code it is possible to add additional queue arguments by the spring properties mapping.

spring.rabbitmq.queues[0].arguments[x-message-ttl]=100000

But an exception occurs:

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - invalid arg 'x-message-ttl' for queue 'com.avides.abct' in vhost '/': {unacceptable_type,longstr}, class-id=50, method-id=10)

It looks like the spring properties mapping map this property as a String. Therefore this additional queue argument should be handled like the x-max-length (if the 'x-message-ttl' argument is used).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions