Skip to content

Commit

Permalink
Merge pull request #57 from jindalshivali/feature/grails_5_support_au…
Browse files Browse the repository at this point in the history
…tostartup

Feature - Support autostart flag up for JMS Listener containers
  • Loading branch information
codeconsole authored Feb 12, 2024
2 parents 4d389df + 6314d21 commit 5e3afa0
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 5e3afa0

Please sign in to comment.