public class LoggingMethodCallAnnotationMBeanExporter
extends org.springframework.jmx.export.annotation.AnnotationMBeanExporter
MBeanExporter to add logging when a remote call failed. Else, the exception is forwarded to the
client, which may not render the exception correctly (e.g. the JConsole does not show the whole stacktrace)| Constructor and Description |
|---|
LoggingMethodCallAnnotationMBeanExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected ModelMBean |
createModelMBean() |
protected void |
onErrorInRemoteCall(Throwable e) |
setBeanFactory, setDefaultDomainadaptMBeanIfPossible, addExcludedBean, afterPropertiesSet, afterSingletonsInstantiated, createAndConfigureMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResourcepublic LoggingMethodCallAnnotationMBeanExporter()
protected ModelMBean createModelMBean() throws MBeanException
createModelMBean in class org.springframework.jmx.export.MBeanExporterMBeanExceptionprotected void onErrorInRemoteCall(Throwable e)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.