0
votes

It's my first question here in stackoverflow. I'm working in a project which involves Spring AMQP. For the development I found this tutorial: Spring AMQP Example

When I run the ListenerContainer class, I get this exception:

  1. Caused by: org.springframework.amqp.AmqpIllegalStateException: No default listener method specified: Either specify a non-null value for the 'defaultListenerMethod' property or override the 'getListenerMethodName' method.

I've been searching the solution but I can't solve it.

If anyone can help me I'll be grateful.

1

1 Answers

1
votes

I am not familiar with that blog post but it's using a very old (pre-release) version of Spring AMQP; the current release version is 1.4.3. The blog post itself is nearly 5 years old.

You should use the project's own documentation which references the samples supported by the project.