[英]Throwing appropriate exceptions and message for Spring JMX Beans
I have a MBean that throws a runtime exception to the effect 我有一个MBean引发运行时异常
Error during MBean operation invocationMessage: RuntimeException thrown in RequiredModelMBean while trying to invoke operation someMethod
Is there a way I can coax the exception to display a more informative message to the JMX MBean Management Console 有没有办法我可以哄骗异常以向JMX MBean管理控制台显示更多信息
Which console? 哪个控制台?
In both VisualVM
and JConsole
, I get 在
VisualVM
和JConsole
,我都知道
Problem invoking fooBar: java.lang.RuntimeException: foo
调用fooBar时出现问题:java.lang.RuntimeException:foo
where foo
is the exception's message
property. 其中
foo
是异常的message
属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.