Skip to content

Commit

Permalink
major issue with configuration fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsen A. Gutsal committed Nov 25, 2013
1 parent f8bee83 commit 40a241b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RoutingGrailsPlugin.groovy
Expand Up @@ -86,7 +86,9 @@ class RoutingGrailsPlugin {
}

// otherwise we autostart camelContext here
if (application.config?.grails.routing.autoStartup ?: true) {
def config = application.config.grails.routing

if (config.grails.routing.autoStartup ?: true) {
def camelContextId = application.config?.camelContextId ?: 'camelContext'
application.mainContext.getBean(camelContextId).start()
}
Expand Down

0 comments on commit 40a241b

Please sign in to comment.