Bluelock / camel-spring-amqp

Spring AMQP Component for Apache Camel
61 stars 53 forks source link

SpringAMQPConsumer.SpringAMQPExecutorTask.run() being called twice every time creating a new queue #32

Open art11s opened 11 years ago

art11s commented 11 years ago

Noticed that the same queues/bindings where being created twice because of the issue in the title. This happens because first SpringAMQPExecutor.execute(final Runnable task) is called and then SpringAMQPExecutor.execute(final Runnable task, long startTimeout). If comment out the second method the problem goes away. Was there a reason for adding it in the first place?

deckerego commented 10 years ago

It looks like it was added to overload the execute method, but of course it doesn't really do that. Will fix.