LOG.info("JMX is disabled. Using DefaultLifecycleStrategy.");
lifecycleStrategy = new DefaultLifecycleStrategy();
} else {
try {
LOG.info("JMX enabled. Using InstrumentationLifecycleStrategy.");
lifecycleStrategy = new InstrumentationLifecycleStrategy();
} catch (NoClassDefFoundError e) {
// if we can't instantiate the JMX enabled strategy then fallback to default
// could be because of missing .jars on the classpath
LOG.warn("Could not find needed classes for JMX lifecycle strategy."
+ " Needed class is in spring-context.jar using Spring 2.5 or newer ("