10 Disabling And Reloading
Version: 2.0.0.RC2
10 Disabling And Reloading
Disabling
You can globally disable all JMS functionality by settingjms.disabled
to true in your application config.For example you could turn JMS for testing with…environments {
test {
jms.disabled = true
}
}
sendMessage()
methods or jmsService
even if JMS is disabled.Reloading
The JMS plugin has good support for hot reloading during development.Listeners
If you make a change to a service class that is a listener during development, all existing listeners for that service will be shutdown. The service is then re-inspected for listeners that are then registered. This means you can change listener config and have it take effect without restarting your application.Config
If any change to the JMS config is detected, all JMS functionality is torn down and then re-established with the new config. This allows you to change bean definitions (such as container or template options) and have them take effect without restarting your application.Disabled/Enabled
You can also temporarily disable or enable JMS functionality by changing thejms.disabled
config option during development and have it take effect without restarting your application.