- Declare in the application configuration: <context:mbean-export/>
- Annotate java class with @ManagedResource
- Annotate getters or setters with <@ManagedAttribute>
You can also use annotations: @ManagedOperation, @ManagedNotification for methods that are not setters or getters.
No comments:
Post a Comment