ecastellano
ecastellano

Reputation: 40

Spring AMQP Exceptions

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.

Upvotes: 0

Views: 574

Answers (1)

Gary Russell
Gary Russell

Reputation: 174484

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.

Upvotes: 1

Related Questions