Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead letter queue not handle error #6

Open
dongwenting opened this issue Nov 19, 2017 · 0 comments
Open

Dead letter queue not handle error #6

dongwenting opened this issue Nov 19, 2017 · 0 comments

Comments

@dongwenting
Copy link

dongwenting commented Nov 19, 2017

I add the code in DeadLetterSendReceive.java

@RabbitListener( queues = MQConfig.OUTGOING_QUEUE)

public void handleMessage2(ExampleObject exampleObject) throws Exception {

     throw new AmqpRejectAndDontRequeueException("TEST");

}

Even it throws an exception, but the following code never be invoked.

@RabbitListener(queues = MQConfig.INCOMING_QUEUE)

public void handleMessage(ExampleObject exampleObject) {

LOGGER.info("Received incoming object at " + exampleObject.getDate());

}

Is it a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant