我正在使用 Spring 2.5 版的 JMX,其中我正在使用 JMX,如下所示。
@ManagedOperation(description = "Mark the Entry corresponding ABC flow")
@ManagedOperationParameters(value = {
@ManagedOperationParameter(name = "def", description = "Ids of the entries that needs to be STOP"),
@ManagedOperationParameter(name = "Comments", description = "Note on why these entries are being marked as stop") })
public void abcstop(String def, String gtr){
StringBuffer gfhtrPresent= jmxService.abcd(Ids, comments);
if(idsNotPresent.length()>0)
throw new IOARuntimeException("<font color=red><b>No data found for the following id/id's </b></font>"+idsNotPresent);
}
现在我想删除 @Managedoperation 注释并想在 XML 中配置它,请告知我如何配置 @Managedoperation ,因为我想从 xml 本身运行相同的功能,请告知。人们请告知,因为我被困住了,任何帮助将不胜感激