I'm using a @Length(min=constant) annotation, which takes values for constant that must be a constant expression like a final value. I'd like to change that value using JMX, but can't set min to some variable that isn't final. How can I change the JMX value if it's not final?
Asked
Active
Viewed 37 times
1 Answers
0
Sorry, but you cannot change the parameters to the Validator annotations at runtime. They must be constant values at the time of compilation.

Ben M
- 1,833
- 1
- 15
- 24