Hello,
I'm quite new to Spring and JMX and I want to know if its possible to manage a Collection of objects (especially Collection of String) using JMX.
To specify, i got an MBean and an annotated getter/setter pair:
This works fine for the getter but i didn't find a way for invoking the setter.Code:@ManagedAttribute public List<String> getMyList() { return myList; } @ManagedAttribute(persistPolicy="OnUpdate") public void setMyList(List<String> myList) { this.myList = myList; }
Sure i could provide my own "add"-Method and annotate it as JMX Operation to modify the items but my persistence Interceptor is not called that way.
Any ideas?
Thanks,
Thomas Pietsch


Reply With Quote