Skip to content

Commit 5e3afa0

Browse files
authored
Merge pull request #57 from jindalshivali/feature/grails_5_support_autostartup
Feature - Support autostart flag up for JMS Listener containers
2 parents 4d389df + 6314d21 commit 5e3afa0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/groovy/grails/plugin/jms/JmsGrailsPlugin.groovy

+5-1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ JMS integration for Grails.
123123

124124

125125
def startListenerContainer(listenerConfig, applicationContext) {
126-
applicationContext.getBean(listenerConfig.listenerContainerBeanName).start()
126+
def listenerContainer = applicationContext.getBean(listenerConfig.listenerContainerBeanName)
127+
128+
if (listenerContainer.isAutoStartup()) {
129+
listenerContainer.start()
130+
}
127131
}
128132
}

0 commit comments

Comments
 (0)