Spring JMX

Spring에서 설정만으로 기본 객체를 MBean으로 등록해 JMX클라이언트가 호출할 수 있게 한다.



@ManagedAttribute와 @ManagedOperation 차이는 getter/setter로 처리할 수 있는 속성은  @ManagedAttribute로 어노테이션하고, 그외 getter/setter가 아닌 메소드호출을 위해서는 @ManagedOperation으로 어노테이션한다.
@ManagedOperation
JDK 1.5+ method-level annotation that indicates to expose a given method as JMX operation, corresponding to the ManagedOperation attribute. Only valid when used on a method that is not a JavaBean getter or setter. 
@ManagedAttribute
JDK 1.5+ method-level annotation that indicates to expose a given bean property as JMX attribute, corresponding to the ManagedAttribute attribute. Only valid when used on a JavaBean getter or setter.



댓글

이 블로그의 인기 게시물

Protopage.com

Android, MediaPlayer IllegalStateException 상황