Skip to content

Commit

Permalink
Feature - Support autostart flag up for JMS Listener containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jindalshivali committed Feb 9, 2024
1 parent 4d389df commit 6314d21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/groovy/grails/plugin/jms/JmsGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ JMS integration for Grails.


def startListenerContainer(listenerConfig, applicationContext) {
applicationContext.getBean(listenerConfig.listenerContainerBeanName).start()
def listenerContainer = applicationContext.getBean(listenerConfig.listenerContainerBeanName)

if (listenerContainer.isAutoStartup()) {
listenerContainer.start()
}
}
}

0 comments on commit 6314d21

Please sign in to comment.