Skip to content

Queue and exchange recovery for manually created message listener containers #3040

Answered by artembilan
tex1988 asked this question in Q&A
Discussion options

You must be logged in to vote

The logic there in the AbstractMessageListenerContainer is like this:

	/**
	 * Use {@link AmqpAdmin#initialize()} to redeclare everything if necessary.
	 * Since auto deletion of a queue can cause upstream elements
	 * (bindings, exchanges) to be deleted too, everything needs to be redeclared if
	 * a queue is missing.
	 * Declaration is idempotent so, aside from some network chatter, there is no issue,
	 * and we only will do it if we detect our queue is gone.
	 * <p>
	 * In general, it makes sense only for the 'auto-delete' or 'expired' queues,
	 * but with the server TTL policy we don't have ability to determine 'expiration'
	 * option for the queue.
	 * <p>
	 * Starting with version 1…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tex1988
Comment options

@artembilan
Comment options

Answer selected by tex1988
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants