But when the application server starts, the eventProcessorListenerContainer is already running (isActive=true, and isRunning=true but autoStartup=false)
The code above starts all the containers irrespective of the autoStartup property.
The right thing would be to check for autoStartup property before starting the container.
Define a listener bean using parent bean as :
But when the application server starts, the eventProcessorListenerContainer is already running (isActive=true, and isRunning=true but autoStartup=false)
I believe this is because the plugin code calls the start() method on all the listener containers. Specifically, this piece of code in https://github.com/gpc/jms/blob/v2.0.0.RC2/src/main/groovy/grails/plugin/jms/JmsGrailsPlugin.groovy Method doWithApplicationContext():
The code above starts all the containers irrespective of the autoStartup property. The right thing would be to check for autoStartup property before starting the container.