You've propably forgoten to have the gettter/setter appear also in Your MyInterfaceMBean interface, that should be implemented by your MyClass.
If in doubt, read the JMX spec.
SetInterval -> setInterval
I figure out the problem just a few minutes after I post it on the forum. :)