gpc / jms

JMS integration for Grails.
http://grails.org/plugin/jms
16 stars 28 forks source link

Multiple Service Listeners created when using @Queue Annotation #35

Closed dseltzer closed 3 years ago

dseltzer commented 7 years ago

When exposing a method of a Grails Service as a message listener using the Queue annotation with a name parameter derived from configuration key two listeners are created for the same method:

  1. A listener with a default name: <>.
  2. A listener with the name defined in the queue annotation name parameter.

Is there any way to suppress the default listener from being created?

Example code similar to my code, per the docs.

import grails.plugin.jms.*class PersonService {
   static exposes = ["jms"]

   @Queue(name = '$queue.key.in.config')
   def someWorkToDo(msg) {
   }
}

Here's my configuration:

Grails 3.2.10 Grails JMS Plugin 2.0.0RC2 ActiveMQ-Spring 5.14.1 Apache ActiveMQ 5.9.1

github-actions[bot] commented 3 years ago

Stale issue message